Graphics bug? (Release Announcements)

by Beemer, Monday, January 20, 2014, 18:13 (1223 days ago)

Linux version of Basic256

I believe I've found a graphics bug:

graphsize 800,600
fastgraphics
for i = 0 to 790
clg
color red
j=i+10
print i+","+0+","+j+","+10
rect i,0,j,10
refresh
next i

This *should* produce a 10x10 red square that moves from the left most (0,0,10,10) side of the graphics window to the right most (790,0,800,10).

At the start and at the actual finish of the run, you get a red 10x10 box. During a run though, either full run or stepping through a trace, it produces an elgonated rectangle that 'catches up' at the end of the loop.

I did also try putting a pause in case it was some kind of refresh issue but even a 3 second pause still produces the rectangle.

Watching the output of the print appears to verify that I should only be getting a 10x10 box each iteration.

For further testing, I tried manually coding the first 3 iterations and the effect is the same:

clg
color red
rect 0,0,10,10
refresh
clg
color red
rect 1,0,11,10
refresh
clg
color red
rect 2,0,12,10
refresh
clg
color red
rect 3,0,13,10
refresh

Also, putting the refresh at the top of the loop produces the issue.

Is this a bug or am I making a mistake somewhere?


Complete thread:

 RSS Feed of thread

powered by my little forum