The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.29 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is redraw working properly?
#1
The result of this code is a black screen:

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.
Reply


Messages In This Thread
Is redraw working properly? - by Tomaaz - 02-04-2018, 09:41 PM
RE: Is redraw working properly? - by kcfb - 02-05-2018, 06:51 AM
RE: Is redraw working properly? - by Marcus - 02-05-2018, 11:55 AM
RE: Is redraw working properly? - by Tomaaz - 02-05-2018, 01:02 PM
RE: Is redraw working properly? - by johnno56 - 02-28-2018, 09:37 PM
RE: Is redraw working properly? - by cvirus - 03-01-2018, 09:30 AM
RE: Is redraw working properly? - by johnno56 - 03-01-2018, 11:35 AM
RE: Is redraw working properly? - by Tomaaz - 03-04-2018, 04:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)