draw_vertex_color

(x,y,col,alpha)


Add vertex (x,y) to the primitive, with its own color and alpha value. This allows you to create primitives with smoothly changing color and alpha values.

Example

draw_vertex_color(5,5,c_red,1)

This will draw a vertex, just like draw_vertex Except it will have a set color and alpha.

For a primitive example go here

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License