prog8/examples/swirl-float.p8
2020-07-01 22:23:46 +02:00

23 lines
412 B
Lua

%import c64utils
%import c64flt
main {
const uword width = 40
const uword height = 25
sub start() {
float t
ubyte color
forever {
ubyte xx=(sin(t) * width/2.2) + width/2.0 as ubyte
ubyte yy=(cos(t*1.1356) * height/2.2) + height/2.0 as ubyte
c64scr.setcc(xx, yy, 81, color)
t += 0.08
color++
}
}
}