MinaCoding2026_BoxTime
Rotating Boxes
Updated
•1 min read
SwingingByBoxes
For MinaCoding2026, Day 15: Rotation ,Day 24: Time, SwingingbyBoxes is a LiveCodeLab Coded Sketch that displays rotational movement affected by time (and a blur).
Video
Code
if time % 10 > 7
simpleGradient blue,teal,aqua
ambientLight red
abs(sin(time % 40) * 50 +1)*2 times with i
scale abs(sin(time % 40))
move wave,Math.hypot(wave, Math.cbrt(sin(time)))-1,wave(0.03)
rotate wave(time % 7)/1000, wave(Math.cbrt(time/2))/100, wave(i/3) * Math.cbrt(time) / 3
box Math.cbrt(wave(sin(time) * 3)/100,sin(time) * 10),Math.hypot(sin(time) * 3,Math.cbrt(i * time % 19)), wave(sin(i))/15
else if time % 10 < 3
ambientLight gold
background white
abs(sin(time % 40) * 50 +1)*3 times with i
scale 0.76
move wave,Math.hypot(wave, Math.cbrt(sin(time)))-1,wave(0.03)
rotate wave(time % 7)/1000, wave(Math.cbrt(time/2))/100, wave(i/3) * Math.cbrt(time) / 3
box wave(time % 7 + 3)/10, 2, time % 3 + 1
else
ambientLight green
background grey
abs(sin(time % 40) * 50 +1)*2 times with i
move wave,Math.hypot(wave, Math.cbrt(sin(time)))-1,wave(0.03)
rotate wave(time % 7)/1000, wave(Math.cbrt(time/2))/100, wave(i/3) * Math.cbrt(time) / 3
box wave(time % 7 + 3)/10, 2, time % 3 + 1



