Skip to content

Commit c04cffa

Browse files
committed
keywords.txt file for 215
1 parent 5fa938b commit c04cffa

6 files changed

Lines changed: 14 additions & 26 deletions

File tree

content/api_en/PShape_getVertex.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void draw() {
3737
</example>
3838

3939
<description><![CDATA[
40-
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.
40+
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).
4141
]]></description>
4242

4343
</root>

content/api_en/PShape_setVertex.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void draw() {
3737
</example>
3838

3939
<description><![CDATA[
40-
The <b>setVertex()</b> method defines the coordinates of the vertex point located at the position defined by the <b>index</b> parameter.
40+
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).
4141
]]></description>
4242

4343
</root>

content/api_en/blendMode.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
size(100, 100, P2D);
15+
size(100, 100);
1616
background(0);
1717
blendMode(ADD);
1818
stroke(102);

content/static/tutorials/pshape/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,14 +503,14 @@ <h3>Manipulating the Vertices of a PShape in Real-Time</h3>
503503

504504
<p>After about five minutes of working with PShape, the question inevitably arises: "What do I do if I want to wiggle all of my vertices?" PShape allows you to dynamically access and alter the vertices through the methods <a href="http://processing.org/reference/PShape_getVertex_.html">getVertex()</a> and <a href="http://processing.org/reference/PShape_setVertex_.html">setVertex()</a>.</p>
505505

506-
<p>To iterate over the vertices of a PShape, you can loop from 0 to the total number of vertices (<a href="http://processing.org/reference/PShape_vertexCount_.html">vertexCount()</a>). Assuming a PShape "s", this would look something like:</p>
506+
<p>To iterate over the vertices of a PShape, you can loop from 0 to the total number of vertices (<a href="http://processing.org/reference/PShape_getVertexCount_.html">getVertexCount()</a>). Assuming a PShape "s", this would look something like:</p>
507507

508508
<pre>
509509
for (int i = 0; i < s.getVertexCount(); i++) {
510510
}
511511
</pre>
512512

513-
<p>The vertices can be retrieved as <a href="http://processing.org/reference/PVector.html">PVector</a> objects with getVertex().</p>
513+
<p>The vertices can be retrieved as <a href="http://processing.org/reference/PVector.html">PVector</a> objects with getVertexCount().</p>
514514

515515
<pre>
516516
for (int i = 0; i < s.getVertexCount(); i++) {

generate/keywords_create.cgi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,12 @@ sub set_category
169169
$category = "KEYWORD3";
170170
} elsif($subcat =~ s/field/field/i) {
171171
#The category KEYWORD4 was invented 27 Nov 2011 for fields -- CR
172-
$category = "KEYWORD4";
172+
#$category = "KEYWORD4";
173+
$category = "KEYWORD3";
173174
} elsif($cat =~ s/constants/constants/i) {
174175
$category = "LITERAL2";
175176
} elsif ($type eq "variable") {
176-
$category = "KEYWORD5";
177+
$category = "LITERAL2";
177178
}
178179

179180
return $category;

todo.txt

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ NEW LANGUAGE ELEMENTS IN REFERENCE
3434
- add Server.ip()
3535
http://code.google.com/p/processing/issues/detail?id=1411
3636

37-
- add
38-
3937
- add beginContour() / endContour() !!!!!
4038

4139
- Request
@@ -54,33 +52,17 @@ loadXXX with second parameter for file type:
5452
- loadTable("somethingorother", "csv");
5553
- loadTable("somethingorother.csv", "tsv"); // override the .csv extension since the contents are tab delimited
5654

57-
- hide the "source" parameter from the Reference for createShape()
58-
5955
- add clear() in place of background(0, 0, 0, 0), this clears the background, only applicable to off-screen buffers
6056

61-
- change "shape" parameter in shape() to "shp" to match "img" in image()
62-
63-
- clarify in reference that getVertex() and setVertex() only work on shapes made manually with the long form of createShape() and not the versions these createShape(RECT, 10, 10, 60, 60)
64-
65-
- clip()/noClip()
66-
if (mousePressed) {
67-
noClip();
68-
} else {
69-
clip(mouseX, mouseY, 50, 50);
70-
}
71-
7257
- arc() with different options
7358

74-
- blendMode() for default renderer
75-
76-
7759
- write reference for getChild() re: OBJ
7860

7961
OPEN QUESTIONS
8062
- need to add addChild() to PShape reference, how does it work. On both OBJ and SVG?
8163
- thread() ???
8264

83-
- 835 Improve mouseX, mouseY, pmouseX, pmouseY documentation --CR
65+
8466
- PDF fonts
8567
- rewrite documentation about pdf fonts (errors with non-native fonts) -- CR
8668
- figure out why font naming not working correctly -- CR
@@ -126,6 +108,11 @@ Anyhow… something to dream about for the future. Andres had brought it up sinc
126108

127109
DONE FOR 2.0 REFERENCE
128110

111+
o change "shape" parameter in shape() to "shp" to match "img" in image()
112+
x hide the "source" parameter from the Reference for createShape()
113+
x 835 Improve mouseX, mouseY, pmouseX, pmouseY documentation --BF
114+
x clarify in reference that getVertex() and setVertex() only work on shapes made manually with the long form of createShape() and not the versions these createShape(RECT, 10, 10, 60, 60)
115+
x clip()/noClip()
129116
x Add to keywords.base
130117
x ENABLE_STROKE_PURE
131118
x DISABLE_DEPTH_MASK

0 commit comments

Comments
 (0)