GLBasic User Manual

Main sections

SETPIXEL

SETPIXEL x%, y%, color%



Draws a colored Pixel at position (x%, y%).

Sample:
 
// Draw Circle
FOR i=0 TO 359
SETPIXEL 200*SIN(i) + 320, 200*COS(i)+240, RGB(255, 255, 255)
NEXT
SHOWSCREEN
MOUSEWAIT

See also...