11-24-2005, 05:23 PM
PAINT (x, y), colour, boundary
If will flood-fill from (x, y) using colour and stoping by lines which are of "boundary" colour.
omitting "boundary" it won't stop, so a
Will paint the whole screen in dark blue.
This thing will draw a triangle in green:
If you place a
below the above code, the triangle will get filled in red (4). PAINT will stop at green (2) lines.
If will flood-fill from (x, y) using colour and stoping by lines which are of "boundary" colour.
omitting "boundary" it won't stop, so a
Code:
CLS
PAINT (0,0), 1
Will paint the whole screen in dark blue.
This thing will draw a triangle in green:
Code:
LINE (160,0) - (60, 199), 2
LINE (160, 0) - (260, 199), 2
LINE (60, 299) - (260, 199), 2
If you place a
Code:
PAINT (160,100), 4, 2
below the above code, the triangle will get filled in red (4). PAINT will stop at green (2) lines.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i