Loading

PquadraticVertex


processing
Since v1.0.0
Available on all platforms
See also

Specifies vertex coordinates for quadratic Bezier curves. Each call to PquadraticVertex defines the position of one control point and one anchor point of a Bezier curve, adding a new segment to a line or shape. The first time PquadraticVertex is used within a PbeginShape call, it must be prefaced with a call to Pvertex to set the first anchor point. This function must be used between PbeginShape and PendShape and only when there is no MODE parameter specified to PbeginShape.

Link to original Processing doc

Signature

Examples

// @preview image 100 100 '2D3' PGraphics 255 Pbackground 4 PstrokeWeight PbeginShape 20 20 Pvertex 80 20 50 50 PquadraticVertex 20 80 80 80 PquadraticVertex 80 60 Pvertex PendShape Pencode