The radial wrapper function helps you make a radial version of any shape drawn in P5.js.
Arts, Crafts, & Computation
The radial wrapper function helps you make a radial version of any shape drawn in P5.js.
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.