Skip to main content

Command Palette

Search for a command to run...

MinaCoding2026_BoxTime

Rotating Boxes

Updated
1 min read
MinaCoding2026_BoxTime

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

https://youtu.be/Q5H_yw2KhHw

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

Minacoding2026

Part 26 of 26

Submissions for MinaCoding 2025: https://minacoding.online/theme

Start from the beginning

MinaCoding2026_Circle

Starting this Journey Again