πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2023-06-23. It may be informal or outdated β€” anyone can edit this page to improve it. This topic changes between game versions β€” double-check before relying on it. Original discussion

Masking/clipping 2D drawing to a shape

πŸ’¬ GeneralUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.