1
\$\begingroup\$

Since Love2D doesn't support SVG, I'm looking for other ways to create solid, compound shapes. Anything that has straight edges can be drawn using a polygon, but I haven't yet found a way to mask an circle or ellipse, or in other words, subtract a circle or ellipse from the object being drawn. Is this possible with Love2D?

\$\endgroup\$
2
\$\begingroup\$

I found the answer -- What I was calling a mask is called a stencil in Love2D. See https://love2d.org/wiki/love.graphics.stencil and Make some black pixels transparent in Love2D.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.