Name | quadraticVertex() |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Examples |
noFill() strokeWeight(4) beginShape() vertex(20, 20) quadraticVertex(80, 20, 50, 50) endShape() noFill() strokeWeight(4) beginShape() vertex(20, 20) quadraticVertex(80, 20, 50, 50) quadraticVertex(20, 80, 80, 80) vertex(80, 60) endShape() | ||||||||||||||
Description | Specifies vertex coordinates for quadratic Bezier curves. Each call to quadraticVertex() defines the position of one control points and one anchor point of a Bezier curve, adding a new segment to a line or shape. The first time quadraticVertex() is used within a beginShape() call, it must be prefaced with a call to vertex() to set the first anchor point. This function must be used between beginShape() and endShape() and only when there is no MODE parameter specified to beginShape(). Using the 3D version requires rendering with P3D (see the Environment reference for more information). | ||||||||||||||
Syntax | quadraticVertex(cx, cy, x3, y3) quadraticVertex(cx, cy, cz, x3, y3, z3) | ||||||||||||||
Parameters |
| ||||||||||||||
Related |
curveVertex() vertex() bezierVertex() bezier() |
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License