PathElement

class shoebot.data.PathElement(cmd=None, *args)

Represents a single element in a Bezier path.

The first argument should be a command string, following the proper values according to which element we want.

Possible input:

(‘moveto’, x, y) (‘lineto’, x, y) (‘rlineto’, x, y) (‘curveto’, c1x, c1y, c2x, c2y, x, y) (‘rcurveto’, c1x, c1y, c2x, c2y, x, y) (‘arc’, x, y, radius, angle1, angle2) (‘ellipse’, x, y, w, h) (‘close’,)

Mind the trailing comma in the ‘close’ example, since it just needs an argument. The trailing comma is a way to tell python this really is supposed to be a tuple.

set_ctrl1(ctrl1)
get_ctrl1()
set_ctrl2(ctrl2)
get_ctrl2()
property ctrl1
property ctrl2