Skip to content

Commit c729d5e

Browse files
committed
Reference updates for PShape, noise(), blend(), and createShape()
1 parent a311905 commit c729d5e

File tree

12 files changed

+27
-23
lines changed

12 files changed

+27
-23
lines changed

content/api_en/PShape.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void draw() {
3232
PShape square; // The PShape object
3333
3434
void setup() {
35-
size(100, 100, P2D);
35+
size(100, 100);
3636
// Creating the PShape as a square. The corner
3737
// is 0,0 so that the center is at 40,40
3838
square = createShape(RECT, 0, 0, 80, 80);

content/api_en/PShape_beginContour.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s;
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
1919
// Make a shape
2020
s = createShape();

content/api_en/PShape_beginShape.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s; // The PShape object
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
s = createShape();
1919
s.beginShape();
2020
s.fill(0, 0, 255);

content/api_en/PShape_endContour.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s;
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
1919
// Make a shape
2020
s = createShape();

content/api_en/PShape_endShape.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s; // The PShape object
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
s = createShape();
1919
s.beginShape();
2020
s.fill(0, 0, 255);

content/api_en/PShape_getVertex.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s;
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
s = createShape();
1919
s.beginShape();
2020
s.vertex(0, 0);
@@ -38,7 +38,7 @@ void draw() {
3838
</example>
3939

4040
<description><![CDATA[
41-
The <b>getVertex()</b> method returns a PVector with the coordinates of the vertex point located at the position defined by the <b>index</b> parameter. This method works when shapes are created as shown in the example above, but won't work properly when a shape is defined explicitly (e.g. createShape(RECT, 20, 20, 80, 80).
41+
The <b>getVertex()</b> method returns a PVector with the coordinates of the vertex point located at the position defined by the <b>index</b> parameter. This method works when shapes are created as shown in the example above, but won't work properly when a shape is defined explicitly (e.g. <b>createShape(RECT, 20, 20, 80, 80)</b>.
4242
]]></description>
4343

4444
</root>

content/api_en/PShape_getVertexCount.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s;
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
s = createShape();
1919
s.beginShape();
2020
s.vertex(0, 0);

content/api_en/PShape_setVertex.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape s;
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
s = createShape();
1919
s.beginShape();
2020
s.vertex(0, 0);
@@ -38,7 +38,7 @@ void draw() {
3838
</example>
3939

4040
<description><![CDATA[
41-
The <b>setVertex()</b> method defines the coordinates of the vertex point located at the position defined by the <b>index</b> parameter. This method works when shapes are created as shown in the example above, but won't work properly when a shape is defined explicitly (e.g. createShape(RECT, 20, 20, 80, 80).
41+
The <b>setVertex()</b> method defines the coordinates of the vertex point located at the position defined by the <b>index</b> parameter. This method works when shapes are created as shown in the example above, but won't work properly when a shape is defined explicitly (e.g. <b>createShape(RECT, 20, 20, 80, 80)</b>.
4242
]]></description>
4343

4444
</root>

content/api_en/blend.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Called "Color Dodge" in Illustrator and Photoshop.<br />
8484
BURN - Darker areas are applied, increasing contrast, ignores lights.
8585
Called "Color Burn" in Illustrator and Photoshop.<br />
8686
<br />
87-
All modes use the alpha information (highest byte) of source image pixels as the blending factor. If the source and destination regions are different sizes, the image will be automatically resized to match the destination size. If the <b>srcImg</b> parameter is not used, the display window is used as the source image.<br />
87+
All modes use the alpha information (highest byte) of source image pixels as the blending factor. If the source and destination regions are different sizes, the image will be automatically resized to match the destination size. If the <b>src</b> parameter is not used, the display window is used as the source image.<br />
8888
<br />
8989
As of release 0149, this function ignores <b>imageMode()</b>.
9090
]]></description>

content/api_en/createShape.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
PShape square; // The PShape object
1515
1616
void setup() {
17-
size(100, 100, P2D);
17+
size(100, 100);
1818
// Creating the PShape as a square. The
1919
// numeric arguments are similar to rect().
2020
square = createShape(RECT, 0, 0, 50, 50);
@@ -34,7 +34,7 @@ void draw() {
3434
PShape s; // The PShape object
3535
3636
void setup() {
37-
size(100, 100, P2D);
37+
size(100, 100);
3838
// Creating a custom PShape as a square, by
3939
// specifying a series of vertices.
4040
s = createShape();
@@ -85,7 +85,7 @@ void draw() {
8585
PShape alien, head, body;
8686
8787
void setup() {
88-
size(100, 100, P2D);
88+
size(100, 100);
8989
9090
// Create the shape group
9191
alien = createShape(GROUP);

0 commit comments

Comments
 (0)