graph closepathstroke - part-cw/lambdanative GitHub Wiki
(graph-closepathstroke g)
Closes the current defined path by inserting a line to the last graph-moveto or graph-rmoveto position, and strokes the path.
Parameter | Description |
---|---|
g | graph context |
Example
Draw a red box using the path operations:
(graph-color g Red)
(graph-moveto g -0.5 -0.5)
(graph-lineto g 0.5 -0.5)
(graph-lineto g 0.5 0.5)
(graph-lineto g -0.5 0.5)
(graph-closepathstroke g)