Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
POINT Keyword
POINT integer-expression, integer-expression

Draws a single pixel at the X,Y coordinates given, using the current graphics colour (set with GCOL).

  • Parameters are: x, y (screen pixels).

Examples

Single white dot

GCOL RGB(255,255,255)
POINT 100, 80

Star field

GCOL RGB(200,200,255)
FOR I = 1 TO 200
X = RND(1920)
Y = RND(1080)
POINT X, Y
NEXT

Notes

  • Coordinates are in screen pixels; (0,0) is the top-left corner.
  • Points outside the screen are clipped.
  • When AUTOFLIP is FALSE, the pixel appears after you call FLIP.

See also:
GCOL · LINE · RECTANGLE · CIRCLE