prog8/examples/swirl.p8
2019-01-08 02:09:35 +01:00

25 lines
444 B
Lua

%import c64utils
~ main {
const uword width = 40
const uword height = 25
sub start() {
uword anglex
uword angley
ubyte color
while true {
ubyte x = msb(sin8u(msb(anglex)) as uword * width)
ubyte y = msb(cos8u(msb(angley)) as uword * height)
c64scr.setcc(x, y, 81, color)
anglex+=800
angley+=947
color++
}
}
}