
RectShakes
For MinaCoding2026 Day 18: Quick & Day 21: Morning, RectShakes coded in LiveCodeLab explores rectangles trying to stay on path
Video
Code
noStroke
fill color(0 + (time % 15 * 15),wave(255),sin(time)%200)
simpleGradient blue,orange,green
rotate time, Math.hypot(time,cos(time)),time %
300 + (time % 50)*2 times with i
scale 0.85
rotate time * 2 + sin(i), time * 4 + sin(i),sin((time % 6)*i)
move 2, 0, wave(sin(i))
rect 1, 0.4, 0.07



