- Thu 22 June 2023
- Musings
- Ben Cottrell
Animated Rose Pattern with p5js
// Looks like its tilting let io = 0; let myShader; function setup() { createCanvas(892, 578); frameRate(60); } function draw() { background(0); const PI = 3.14159; const PSI = 2 * PI; var r = max(width / 2, height / 2) / 1.61803 * 0.1; translate(width / 2, height / 2); var thetaSteps = 2500; colorMode(HSB); strokeWeight …