MinaCoding2024_Screensaver

MinaCoding2024_Screensaver

Screensaver Mode

ScreenRambles

For the 10th day of #MinaCoding2024 : "ScreenSaver" , ScreenRambles is coded in Hydra & LivecodeLAb

Poetry

Intersection of Lines
Their Transformation intertwines
Translating
Rotating
Elevating
Spectating
For the Screen is rambling
As the pixels are unravelling

Video

Code

LiveCodeLab

turns = floor(time / 10) % 6
detail = 100  / (time % 9 + 1)
speed = ((time % 8 + 2) / 15)/12
if time % 10 < 5
    ambientLight 255, 255, 255

simpleGradient red,blue,yellow
rotate time / 5, time % 3, sin(time)
detail times with i
    rotate 0, 0, (2 * pi) / detail
    move 2, cos(time)/3, tan(time) * wave(0.003)
        rotate (turns * i * pi) / detail + (time * speed), 0, 0
        rect 1

Hydra

s0.initScreen()

src(s0).scale(0.75).kaleid(0.75).repeat(1.5,[2.5,1.75,0.35].smooth()).modulateScale(src(s0).scale(0.9).modulateRotate(src(s0).scale(0.8))).out()

speed = 0.5