draw_triangle_color

(x1,y1,x2,y2,x3,y3,col1,col2,col3,outline)


Draws a triangle. The three colors are the colors of the three vertices which is interpolated over the triangle. outline indicates whether only the outline must be drawn (true) or it should be filled (false).

Example

draw_triangle_color(48,48,0,128,106,128,c_red,c_blue,c_green,true)

This will draw a triangle with the points mentioned, with the colors red, blue, and green. NOT filled.

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