Masking/clipping 2D drawing to a shape
π¬ Generalβ’Updated 2 days agoβ’0 views
Use render.stencilMask / the mask() helper: mask(function() draw the masking shape end, function() draw your content end) - possibly with invert=true. For rotatβ¦
How to confine a textured rectangle (or other drawing) to a certain area
Use render.stencilMask / the mask() helper: mask(function() draw the masking shape end, function() draw your content end) - possibly with invert=true. For rotated masks use the matrix instead.