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