Function painter:stroke draws the boundary of the current path using the current pen.

The optional boolean optnewpath specifies whether this function resets the current path using painter:newpath(). The default is to reset the current path.

See also: PostScript operator stroke.