plot()
Purpose
Plot a single point on the screen.
Description
Set a single pixel on the screen at the specified location to the specified colour.
Syntax
plot( x, y, colour )
Arguments
x horizontal screen position in pixels
y vertical screen position in pixels
colour colour name or RGB values { red, green, blue, opacity } between 0 and 1
Example
// Draw 1000 random points
clear()
for i = 1 to 1000 loop
x = random( gWidth() )
y = random( gHeight() )
col = { random( 101 ) / 100, random( 101 ) / 100, random( 101 ) / 100, random( 101 ) / 100 }
plot( x, y, col )
update()
repeat
// Wait 10 seconds
sleep( 10 )
Associated Commands