graph solidtriangle - part-cw/lambdanative GitHub Wiki

(graph-solidtriangle g x1 y1 x2 y2 x3 y3)

This function draws a filled triangle between the three specified vertices, using the current pen properties.

Parameter Description
g graph context
x1,y1 first triangle vertex
x2,y2 second triangle vertex
x3,y3 third triangle vertex

Example

(graph-solidtriangle g 0.8 0.2 0.5 0.8 0.2 0.1)