Scaling shapes in P5.js Without Shifting (Wrapper Function)

Using the scale() function in Processing and P5.js can be tricky because it scales the canvas itself, causing your shapes to move rather than scale from a fixed point. Here’s a wrapper function for P5.js that helps you scale shapes without all that shifting around.

Leave a Reply

Your email address will not be published. Required fields are marked *