Code: Select all
REM 'color pixels.txt' source file:
GRAPHICS
maxx = SCREEN_W....
...
GOTO LOOP
' added:
PRINT "hello"
Can you help me about this?
Thanks!
Matteo
Code: Select all
REM 'color pixels.txt' source file:
GRAPHICS
maxx = SCREEN_W....
...
GOTO LOOP
' added:
PRINT "hello"
Code: Select all
REM 'color pixels.txt' source file:
GRAPHICS
maxx = SCREEN_W....
...
LOOP:
...
GOTO LOOP
' added:
TEXT
PRINT "hello"
Code: Select all
Loop:
IF {condition} THEN BREAK
GOTO Loop
Code: Select all
GRAPHICS
maxx = SCREEN_WIDTH() * SCREEN_SCALE()
maxy = SCREEN_HEIGHT() * SCREEN_SCALE()
a=1
b=0
LOOP:
IF a>1000 THEN
TEXT
PRINT b
BREAK
ENDIF
var1=RND(maxx)
var2=RND(maxy)
DRAW PIXEL var1, var2 COLOR RND(1), RND(1), RND(1)
IF var1<10 AND var2<10 THEN
b=b+1
ENDIF
a=a+1
GOTO LOOP
Code: Select all
GRAPHICS
maxx = SCREEN_WIDTH() * SCREEN_SCALE()
maxy = SCREEN_HEIGHT() * SCREEN_SCALE()
a=1
b=0
DO
var1=RND(maxx)
var2=RND(maxy)
DRAW PIXEL var1, var2 COLOR RND(1), RND(1), RND(1)
IF var1<10 AND var2<10 THEN
b=b+1
ENDIF
a=a+1
UNTIL a>1000
PAUSE 3
TEXT
PRINT b