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\$

1 Answer 1

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\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .