Draws a single pixel in a given colour.


draw_point_colour(x, y, col1);

参数 描述
x The x coordinate of the point.
y The y coordinate of the point.
col1 The colour of the point.

返回: N/A(无返回值)


With this function you can draw a single pixel anywhere on the screen with a colour that you define. The colour settings will over-ride the base colour set with the function draw_set_colour.

NOTE: If you are wanting to draw a shape using a shader, you should be aware that most shaders expect the following inputs: vertex, texture, Colour. However, when using this function, only vertex and colour data are being passed in, and so the shader may not draw anything (or draw something but not correctly). If you need to draw shapes in this way then the shader should be customised with this in mind.


draw_point_colour(50, 50, c_red);

This would draw a red pixel at (50,50).

上一页: Drawing Basic Forms
下一页: draw_rectangle
© Copyright YoYo Games Ltd. 2018 All Rights Reserved