Home

PBBezier.PathCommand

Commands used in drawing a Display (custom UI component). The origin for drawing is at the lower-left corner of the Display, with the Y-axis increasing upwards.

["move", Float, Float]

Move the draw cursor to the the XY coordinate specified by the two Floats.

["line", Float, Float]

Draw a line from the current cursor position to the XY coordinate specified by the two Floats.

["curve", Float, Float, Float?]

Draw a curve from the current cursor position to the XY coordinate specified by the two floats. The optional third Float specifies a weight for the curve.

["scale", Float, Float]

Scale the entire path by the given X and Y values.