|
1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
2 | 2 | <root> |
3 | | -<name>quadraticVertex()</name> |
| 3 | +<name>bezierVertex()</name> |
4 | 4 |
|
5 | 5 | <category>Shape</category> |
6 | 6 |
|
|
9 | 9 | <type></type> |
10 | 10 |
|
11 | 11 | <example> |
12 | | -<image>quadraticVertex_0.png</image> |
| 12 | +<image>bezierVertex_0.png</image> |
13 | 13 | <code><![CDATA[ |
14 | 14 | noFill(); |
15 | | -strokeWeight(4); |
16 | 15 | beginShape(); |
17 | | -vertex(20, 20); |
18 | | -quadraticVertex(80, 20, 50, 50); |
| 16 | +vertex(30, 20); |
| 17 | +bezierVertex(80, 0, 80, 75, 30, 75); |
19 | 18 | endShape(); |
20 | 19 | ]]></code> |
21 | 20 | </example> |
22 | 21 |
|
23 | 22 | <example> |
24 | | -<image>quadraticVertex_1.png</image> |
| 23 | +<image>bezierVertex_1.png</image> |
25 | 24 | <code><![CDATA[ |
26 | | -noFill(); |
27 | | -strokeWeight(4); |
28 | 25 | beginShape(); |
29 | | -vertex(20, 20); |
30 | | -quadraticVertex(80, 20, 50, 50); |
31 | | -quadraticVertex(20, 80, 80, 80); |
32 | | -vertex(80, 60); |
| 26 | +vertex(30, 20); |
| 27 | +bezierVertex(80, 0, 80, 75, 30, 75); |
| 28 | +bezierVertex(50, 80, 60, 25, 30, 20); |
33 | 29 | endShape(); |
34 | 30 | ]]></code> |
35 | 31 | </example> |
36 | 32 |
|
37 | 33 | <description><![CDATA[ |
38 | | -Specifies vertex coordinates for quadratic Bezier curves. Each call to <b>quadraticVertex()</b> 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 <b>quadraticVertex()</b> is used within a <b>beginShape()</b> call, it must be prefaced with a call to <b>vertex()</b> to set the first anchor point. This function must be used between <b>beginShape()</b> and <b>endShape()</b> and only when there is no MODE parameter specified to <b>beginShape()</b>. Using the 3D version requires rendering with P3D (see the Environment reference for more information). |
| 34 | +Specifies vertex coordinates for Bezier curves. Each call to <b>bezierVertex()</b> 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 <b>bezierVertex()</b> is used within a <b>beginShape()</b> call, it must be prefaced with a call to <b>vertex()</b> to set the first anchor point. This function must be used between <b>beginShape()</b> and <b>endShape()</b> and only when there is no MODE parameter specified to <b>beginShape()</b>. Using the 3D version requires rendering with P3D (see the Environment reference for more information). |
39 | 35 | ]]></description> |
40 | 36 |
|
41 | 37 | </root> |
0 commit comments