Table of contents
For the 25th Prompt Of Mathober: Gyrate, GyratingSquares in LiveCodeLab
The gyration follows the following definition of the word: “Move or Cause to move in a circle or spiral, especially”
Poem
The Squares are Rotating
The Squares are Gyrating
Motivation is Many
Inspiration is Many
For the Squares are Plenty
Video
Code
LiveCodeLab Visuals
rotate Math.sqrt(cos(time)),Math.cbrt(tan(time))
if time % 30 > 15
animationStyle motionBlur
else
animationStyle paintOver
scale 0.5
17 times
move 0.2, Math.hypot(0.2,sin(time)/3), 0.2
box sin(2) * cos(time), Math.cbrt(time % 6)+1
LiveCodeLab Audio
if time % 30 > 20
bpm 125
play 'alienBeep' ,'--x- ---x- -o-x- --xx--'
play "downstairs" ,'--x- --xx-- --x- --x--'
play "glass" ,'--x- -x-- --x- -x--xx-'
play "hiss" + int(random 2) ,'x--x-o--o-x'
play "mouth" + int(random 5) ,'x----x'
else
bpm 60
play 'alienBeep' ,'--xx --x- --x- -x-x'
play "downstairs" ,'--x- -x-x --x- -x-x-'
play "glass" ,'--x- ---- --x- ----'
play "hiss" + int(random 7) ,'xx-----xx'
play "mouth" + int(random 14) ,'xxxx----oo-----x-----x'