mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +00:00
slight gfx optimizations
This commit is contained in:
parent
e4fe1d2b8d
commit
df3371b0f0
@ -141,21 +141,26 @@ graphics {
|
||||
byte decisionOver2 = 1-xx
|
||||
|
||||
while xx>=yy {
|
||||
ubyte cy_plus_yy = cy + yy
|
||||
ubyte cy_min_yy = cy - yy
|
||||
ubyte cy_plus_xx = cy + xx
|
||||
ubyte cy_min_xx = cy - xx
|
||||
|
||||
for plotx in cx to cx+xx {
|
||||
plot(cy + yy)
|
||||
plot(cy - yy)
|
||||
plot(cy_plus_yy)
|
||||
plot(cy_min_yy)
|
||||
}
|
||||
for plotx in cx-xx to cx-1 {
|
||||
plot(cy + yy)
|
||||
plot(cy - yy)
|
||||
plot(cy_plus_yy)
|
||||
plot(cy_min_yy)
|
||||
}
|
||||
for plotx in cx to cx+yy {
|
||||
plot(cy + xx)
|
||||
plot(cy - xx)
|
||||
plot(cy_plus_xx)
|
||||
plot(cy_min_xx)
|
||||
}
|
||||
for plotx in cx-yy to cx {
|
||||
plot(cy + xx)
|
||||
plot(cy - xx)
|
||||
plot(cy_plus_xx)
|
||||
plot(cy_min_xx)
|
||||
}
|
||||
yy++
|
||||
if decisionOver2<=0
|
||||
|
@ -1,6 +1,5 @@
|
||||
%import c64lib
|
||||
%import c64graphics
|
||||
%zeropage basicsafe
|
||||
|
||||
main {
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
%import c64flt
|
||||
%import c64graphics
|
||||
%option enable_floats
|
||||
%zeropage basicsafe
|
||||
|
||||
|
||||
main {
|
||||
|
Loading…
Reference in New Issue
Block a user