draw_point_color(x,y,col)

Note: This function must be placed in the Draw Event for it to work correctly.

 

x = Horizontal position (in pixels) in the room

y = Vertical position (in pixels) in the room

col = The colour of the point to be placed.

 

Example

draw_point_color(100,100,c_white);

 

This function will draw a point (pixel) in the specified colour (col) on the playing area. col can be one of the in built colours (see draw_set_color) or you can specify the exact colour by using the make_color_rgb or make_color_hsv function:

 

// Draw a point the same colour as this light yellow background

draw_point_color(100,100,make_color_rgb(254,252,224));

 

Revision #1