- set pixel at specified position to specified color

Low-level graphics
(AFL 3.0)

SYNTAX GfxSetPixel( x, y, color )
FUNCTION Sets the pixel at the specified x, y coordinates to the specified color. The point must be in the visible part drawing surface (otherwise it won't be painted). Parameters
  • x - Specifies the x-coordinate of the point.
  • y - Specifies the y-coordinate of the point.
  • color - specifies the color to be used to paint the point

NOTE: This is LOW-LEVEL graphic function. To learn more about low-level graphic functions please read TUTORIAL: Using low-level graphics.

EXAMPLE GfxSetPixel( 20, 20 );
SEE ALSO GfxLineTo() function , GfxMoveTo() function


The GfxSetPixel function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference