draw_point

With this function you can draw a single pixel anywhere on the screen, using the currently set draw colour and alpha.

 

Syntax:

draw_point(x, y);

ArgumentTypeDescription
xRealThe x coordinate of the point to be drawn.
yRealThe y coordinate of the point to be drawn.

 

Returns:

N/A

 

Example:

draw_set_colour(c_yellow);
draw_point(100,100);

This will draw a yellow pixel at position (100,100).