PAINT

SmallBASIC syntax groups: 


Graphics command PAINT


10
20  PAINT [STEP] x, y [,fill-color [,border-color]]
30
Fills an enclosed area on the graphics screen with a specific color. x,y = Screen coordinate (column, row) within the area that is to be filled.


See examples


If there is insufficient information on this page and you wish learn more about PAINT, please send an email to smallbasic@gmail.com. You can help to improve information about PAINT by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

If border-color is specified then PAINT will fill outwards until is meets the specified border-color – (fill-until, color!=point(x,y))

If the border-color is NOT specified then PAINT will fill the area with the same color as the pixel at x,y – (fill-while, color=point(x,y))