DrawTriangle

Draws a triangle onto a drawable.

Synopsis

int DrawTriangle(Draw draw,double x1,double y_1,double x2,double y2,
                 double x3,double y3,int c1, int c2,int c3)
Not Collective

Input Parameters

draw - the drawing context
x1,y1,x2,y2,x3,y3 - the coordinates of the vertices
c1,c2,c3 - the colors of the corners in counter clockwise order

Keywords

draw, triangle

Location: src/draw/interface/dtri.c
Graphics (Draw) Index
Table of Contents