Skip to content

Commit 23197cc

Browse files
committed
1 parent 5d49a00 commit 23197cc

4 files changed

Lines changed: 417 additions & 317 deletions

File tree

content/api_en/bezierVertex.xml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<root>
3-
<name>quadraticVertex()</name>
3+
<name>bezierVertex()</name>
44

55
<category>Shape</category>
66

@@ -9,33 +9,29 @@
99
<type></type>
1010

1111
<example>
12-
<image>quadraticVertex_0.png</image>
12+
<image>bezierVertex_0.png</image>
1313
<code><![CDATA[
1414
noFill();
15-
strokeWeight(4);
1615
beginShape();
17-
vertex(20, 20);
18-
quadraticVertex(80, 20, 50, 50);
16+
vertex(30, 20);
17+
bezierVertex(80, 0, 80, 75, 30, 75);
1918
endShape();
2019
]]></code>
2120
</example>
2221

2322
<example>
24-
<image>quadraticVertex_1.png</image>
23+
<image>bezierVertex_1.png</image>
2524
<code><![CDATA[
26-
noFill();
27-
strokeWeight(4);
2825
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);
3329
endShape();
3430
]]></code>
3531
</example>
3632

3733
<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).
3935
]]></description>
4036

4137
</root>

0 commit comments

Comments
 (0)