02-04-2018, 09:41 PM
The result of this code is a black screen:
To make it work I need to add wait 100 just before redraw. Should it work like that or is it something wrong? Notice, that wait 10 doesn't make it work properly.
Code:
set window 10, 10, 256, 256
set redraw off
for x = 0 to 255
for y = 0 to 255
set color x, y, 255 - x
set pixel x, y
next
next
redraw
wait keydown
To make it work I need to add wait 100 just before redraw. Should it work like that or is it something wrong? Notice, that wait 10 doesn't make it work properly.