DOT

This command will put a pixel on the screen in the current ink color.

  Syntax
DOT X,Y
DOT X,Y,Color Value
  Parameters
X
Integer
This value specifies the x coordinate of the pixel to be written.
Y
Integer
This value specifies the y coordinate of the pixel to be written.
Color Value
Dword
This value specifies the colour value to be used instead of the default foreground ink colour.

  Returns

This command does not return a value.

  Description

The command requires coordinates to place the pixel on the screen. You can also draw to a bitmap, by using the SET CURRENT BITMAP command. You can make this command significantly faster by using the LOCK PIXELS command.

  Example Code
FOR X=0 to 640
DOT X,240,RGB(255,0,0)
NEXT X
WAIT KEY
  See also

BASIC2D Commands Menu
Index