mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
slight optimization
This commit is contained in:
parent
a9d4b8b0fa
commit
fdddb8ca64
@ -12,10 +12,8 @@ main {
|
||||
ubyte color
|
||||
|
||||
forever {
|
||||
float x = sin(t)
|
||||
float y = cos(t*1.1356)
|
||||
ubyte xx=(x * width/2.2) + width/2.0 as ubyte
|
||||
ubyte yy=(y * height/2.2) + height/2.0 as ubyte
|
||||
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++
|
||||
|
Loading…
Reference in New Issue
Block a user