mirror of
https://github.com/irmen/prog8.git
synced 2024-11-20 03:32:05 +00:00
c38508c262
forever loop is gone (use repeat without iteration count). struct literal is now same as array literal [...] to avoid parsing ambiguity with scope blocks.
23 lines
411 B
Lua
23 lines
411 B
Lua
%import c64utils
|
|
%import c64flt
|
|
|
|
main {
|
|
|
|
const uword width = 40
|
|
const uword height = 25
|
|
|
|
sub start() {
|
|
|
|
float t
|
|
ubyte color
|
|
|
|
repeat {
|
|
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++
|
|
}
|
|
}
|
|
}
|