|
a2Dot
This command will draw a dot on the screen.
a2Dot X, Y, color
X
Float
This value specifies the X coordinate of the dot.
Y
Float
This value specifies the y coordinate of the dot.
color
Integer
This value is a 32 bit integer specifying alpha, red, green, and blue color values for the dot.
This command does not return a value.
This command will draw a dot on the screen. The time it takes to draw many dots can be reduced by using the Advanced 2D batch commands.
a = timer()
for x = 1 to 100000
a2Dot rnd(screen width()),rnd(screen height()),rgb(rnd(255),rnd(255),rnd(255))
next x
print timer()-a
WAIT KEY
a2StartDotBatch
a2EndBatch
Advanced 2D Index
Main Menu
|