Play game
Sunflower [PICO8 1k Jam]'s itch.io pageCompressed Bytes used
312
Source Code (OPTIONAL)
-- sunflower
-- by retroredge,v0.1,2024
function _init()
n=0
f=0.618
d=0.00002
r=1
end
function _draw()
cls()
for i=1,n do
local l=i/n
local a=(3.14*f*i)
local x=(l*cos(a))*64
local y=(l*sin(a))*64
circfill((64)+x,(64)+y,r,c(i))
end
end
function _update()
if (n<501) n+=1
f=f+d
if (btnp(⬅️) and r>0) r-=1
if (btnp(➡️) and r<11) r+=1
end
function c(i)
if i%3==0 then
return 10
elseif i%5==0 then
return 11
elseif i%7==0 then
return 8
else
return 12
end
end
Leave a comment
Log in with itch.io to leave a comment.
Comments
I get dizzy … but I can’t stop looking at it 😂 Even the code is understandable … great job.
Thank you :)
Nice looking demo! I like the effects it makes when you make the circles huge, haha!
Thank you for the feedback :)
This is very nice. Really good job.
Thank you for your kind words :)
Cool spiralling demo. 🌌
The use of multicoloured spots works well to add layers of optical illusions.
Nice entry 👍
Thanks Paul :)
Very hypnotising! Cool patterns, can sit and watch this for a while!
Thank you for the nice feedback :)