Loading

PbezierVertex


processing
Since v1.0.0
Available on all platforms
See also

Specifies vertex coordinates for Bezier curves. Each call to PbezierVertex defines the position of two control points and one anchor point of a Bezier curve, adding a new segment to a line or shape. The first time PbezierVertex 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 with POLYGON parameter specified to PbeginShape.

Link to original Processing doc

Signature

Examples

// @preview image 100 100 '2D' PGraphics 0xffffffff Pbackground //white background 0xff0000ff Pstroke //blue stroke (ARGB color) 2 PstrokeWeight 'POLYGON' PbeginShape 30 20 Pvertex 80 0 80 75 30 75 PbezierVertex 'OPEN' PendShape Pencode
// @preview image 100 100 '2D' PGraphics 0xffffffff Pbackground //white background 0xff0000ff Pstroke //blue stroke (ARGB color) 0x7fff0000 Pfill //semi transparent red fill 'POLYGON' PbeginShape 30 20 Pvertex 80 0 80 75 30 75 PbezierVertex 50 80 60 25 30 20 PbezierVertex 'OPEN' PendShape Pencode