Skip to content

Commit b17eb6d

Browse files
committed
Moving some documentation tags about of PApplet
1 parent 88db24c commit b17eb6d

File tree

6 files changed

+20
-39
lines changed

6 files changed

+20
-39
lines changed

core/src/processing/core/PApplet.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,8 @@ static public class RendererChangeException extends RuntimeException { }
654654
public boolean focused = false;
655655

656656
/**
657-
* ( begin auto-generated from online.xml )
658-
*
659657
* Confirms if a Processing program is running inside a web browser. This
660658
* variable is "true" if the program is online and "false" if not.
661-
*
662-
* ( end auto-generated )
663-
* @webref environment
664659
*/
665660
@Deprecated
666661
public boolean online = false;
@@ -3085,19 +3080,12 @@ public void frameRate(float fps) {
30853080

30863081

30873082
/**
3088-
* ( begin auto-generated from param.xml )
3089-
*
30903083
* Reads the value of a param. Values are always read as a String so if you
30913084
* want them to be an integer or other datatype they must be converted. The
30923085
* <b>param()</b> function will only work in a web browser. The function
30933086
* should be called inside <b>setup()</b>, otherwise the applet may not yet
30943087
* be initialized and connected to its parent web browser.
30953088
*
3096-
* ( end auto-generated )
3097-
*
3098-
* @webref input:web
3099-
* @usage Web
3100-
*
31013089
* @param name name of the param to read
31023090
* @deprecated no more applet support
31033091
*/
@@ -3113,21 +3101,11 @@ public String param(String name) {
31133101

31143102

31153103
/**
3116-
* ( begin auto-generated from status.xml )
3117-
*
3118-
* Displays message in the browser's status area. This is the text area in
3119-
* the lower left corner of the browser. The <b>status()</b> function will
3120-
* only work when the Processing program is running in a web browser.
3121-
*
3122-
* ( end auto-generated )
31233104
* <h3>Advanced</h3>
31243105
* Show status in the status bar of a web browser, or in the
31253106
* System.out console. Eventually this might show status in the
31263107
* p5 environment itself, rather than relying on the console.
31273108
*
3128-
* @webref input:web
3129-
* @usage Web
3130-
* @param value any valid String
31313109
* @deprecated no more applet support
31323110
*/
31333111
public void status(String value) {

core/src/processing/core/PGraphics.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3278,7 +3278,11 @@ protected void splineForward(int segments, PMatrix3D matrix) {
32783278
public void smooth() {
32793279
smooth = true;
32803280
}
3281-
3281+
3282+
/**
3283+
*
3284+
* @param level either 2, 4, or 8
3285+
*/
32823286
public void smooth(int level) {
32833287
smooth = true;
32843288
}

java/examples/Basics/Structure/CreateGraphics/CreateGraphics.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PGraphics pg;
1212

1313
void setup() {
1414
size(640, 360);
15-
pg = createGraphics(400, 200, P2D);
15+
pg = createGraphics(400, 200);
1616
}
1717

1818
void draw() {

java/examples/Topics/Create Shapes/PolygonPShape/PolygonPShape.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
PShape star;
1010

1111
void setup() {
12-
size(640, 360,P2D);
12+
size(640, 360, P2D);
1313
smooth();
1414
// First create the shape
1515
star = createShape();

java/examples/Topics/Create Shapes/PrimitivePShape/PrimitivePShape.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ void setup() {
1313
smooth();
1414
// Creating the PShape as an ellipse
1515
// The corner is -50,-50 so that the center is at 0,0
16-
circle = createShape(RECT,-50,-25,100,50);
16+
circle = createShape(RECT, -50, -25, 100, 50);
1717
}
1818

1919
void draw() {
2020
background(51);
2121
// We can dynamically set the stroke and fill of the shape
2222
circle.stroke(255);
2323
circle.strokeWeight(4);
24-
circle.fill(map(mouseX,0,width,0,255));
24+
circle.fill(map(mouseX, 0, width, 0, 255));
2525
// We can use translate to move the PShape
2626
translate(mouseX, mouseY);
2727
// Drawing the PShape

java/keywords.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ void KEYWORD1 void
230230
volatile KEYWORD1
231231
while KEYWORD1 while
232232

233-
234-
# Depricated API
233+
# Deprecated API
235234

236235
arraycopy KEYWORD2 arrayCopy_
237236
openStream KEYWORD2 openStream_
@@ -246,7 +245,7 @@ boolean KEYWORD2 booleanconvert_
246245
byte KEYWORD2 byteconvert_
247246
cache KEYWORD2
248247
char KEYWORD2 charconvert_
249-
color KEYWORD1 color_datatype
248+
color KEYWORD1 color_datatype
250249
start KEYWORD2
251250
stop KEYWORD2
252251
breakShape KEYWORD2
@@ -625,13 +624,13 @@ unhex KEYWORD2 unhex_
625624
updatePixels KEYWORD2 updatePixels_
626625
vertex KEYWORD2 vertex_
627626
width KEYWORD5 width
628-
XMLElement KEYWORD2 XMLElement_
629-
getChild KEYWORD3 XMLElement_getChild_
630-
getChildCount KEYWORD3 XMLElement_getChildCount_
631-
getChildren KEYWORD3 XMLElement_getChildren_
632-
getContent KEYWORD3 XMLElement_getContent_
633-
getFloat KEYWORD3 XMLElement_getFloat_
634-
getInt KEYWORD3 XMLElement_getInt_
635-
getName KEYWORD3 XMLElement_getName_
636-
getString KEYWORD3 XMLElement_getString_
627+
XMLElement KEYWORD2 XML_
628+
getChild KEYWORD3 XML_getChild_
629+
getChildCount KEYWORD3 XML_getChildCount_
630+
getChildren KEYWORD3 XML_getChildren_
631+
getContent KEYWORD3 XML_getContent_
632+
getFloat KEYWORD3 XML_getFloat_
633+
getInt KEYWORD3 XML_getInt_
634+
getName KEYWORD3 XML_getName_
635+
getString KEYWORD3 XML_getString_
637636
year KEYWORD2 year_

0 commit comments

Comments
 (0)