Loading

PquadraticVertex

processing

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

PquadraticVertex is available since version 1.0.0.

See also

Signatures

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