Skip to content

graph closepathstroke

clpetersen edited this page Oct 27, 2014 · 2 revisions

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)
Clone this wiki locally