local t=0; local cx,cy=320,240; local speed=2 local scale={300,200,120}; local k={5,7,3} function love.load() love.window.setMode(640,480) love.graphics.setBackgroundColor(0,0,0) end function love.update(dt) t=t+dt*speed end function love.draw() for l=1,3 do for theta=0,math.pi*8,0.01 do local r=scale[l]*math.cos(k[l]*theta+t*l*0.5) local x=cx+r*math.cos(theta) local y=cy+r*math.sin(theta) local c=math.floor(theta*50+t*50*l)%256 love.graphics.setColor(c/255,((c*2)%256)/255,(c*3)%256/255,1) love.graphics.points(x,y) end end for r=50,400,50 do for i=1,r do local angle=i*math.pi*2/r+t local x=cx+r*math.cos(angle) local y=cy+r*math.sin(angle) love.graphics.setColor(1,1,1,0.3) love.graphics.points(x,y) end end end