Moving some documentation tags about of PApplet

This commit is contained in:
Casey Reas
2012-09-04 00:27:00 +00:00
parent 7e70c81040
commit ebb25d8a45
6 changed files with 20 additions and 39 deletions
-22
View File
@@ -654,13 +654,8 @@ public class PApplet extends Applet
public boolean focused = false;
/**
* ( begin auto-generated from online.xml )
*
* Confirms if a Processing program is running inside a web browser. This
* variable is "true" if the program is online and "false" if not.
*
* ( end auto-generated )
* @webref environment
*/
@Deprecated
public boolean online = false;
@@ -3085,19 +3080,12 @@ public class PApplet extends Applet
/**
* ( begin auto-generated from param.xml )
*
* Reads the value of a param. Values are always read as a String so if you
* want them to be an integer or other datatype they must be converted. The
* <b>param()</b> function will only work in a web browser. The function
* should be called inside <b>setup()</b>, otherwise the applet may not yet
* be initialized and connected to its parent web browser.
*
* ( end auto-generated )
*
* @webref input:web
* @usage Web
*
* @param name name of the param to read
* @deprecated no more applet support
*/
@@ -3113,21 +3101,11 @@ public class PApplet extends Applet
/**
* ( begin auto-generated from status.xml )
*
* Displays message in the browser's status area. This is the text area in
* the lower left corner of the browser. The <b>status()</b> function will
* only work when the Processing program is running in a web browser.
*
* ( end auto-generated )
* <h3>Advanced</h3>
* Show status in the status bar of a web browser, or in the
* System.out console. Eventually this might show status in the
* p5 environment itself, rather than relying on the console.
*
* @webref input:web
* @usage Web
* @param value any valid String
* @deprecated no more applet support
*/
public void status(String value) {
+5 -1
View File
@@ -3278,7 +3278,11 @@ public class PGraphics extends PImage implements PConstants {
public void smooth() {
smooth = true;
}
/**
*
* @param level either 2, 4, or 8
*/
public void smooth(int level) {
smooth = true;
}
@@ -12,7 +12,7 @@ PGraphics pg;
void setup() {
size(640, 360);
pg = createGraphics(400, 200, P2D);
pg = createGraphics(400, 200);
}
void draw() {
@@ -9,7 +9,7 @@
PShape star;
void setup() {
size(640, 360,P2D);
size(640, 360, P2D);
smooth();
// First create the shape
star = createShape();
@@ -13,7 +13,7 @@ void setup() {
smooth();
// Creating the PShape as an ellipse
// The corner is -50,-50 so that the center is at 0,0
circle = createShape(RECT,-50,-25,100,50);
circle = createShape(RECT, -50, -25, 100, 50);
}
void draw() {
@@ -21,7 +21,7 @@ void draw() {
// We can dynamically set the stroke and fill of the shape
circle.stroke(255);
circle.strokeWeight(4);
circle.fill(map(mouseX,0,width,0,255));
circle.fill(map(mouseX, 0, width, 0, 255));
// We can use translate to move the PShape
translate(mouseX, mouseY);
// Drawing the PShape
+11 -12
View File
@@ -230,8 +230,7 @@ void KEYWORD1 void
volatile KEYWORD1
while KEYWORD1 while
# Depricated API
# Deprecated API
arraycopy KEYWORD2 arrayCopy_
openStream KEYWORD2 openStream_
@@ -246,7 +245,7 @@ boolean KEYWORD2 booleanconvert_
byte KEYWORD2 byteconvert_
cache KEYWORD2
char KEYWORD2 charconvert_
color KEYWORD1 color_datatype
color KEYWORD1 color_datatype
start KEYWORD2
stop KEYWORD2
breakShape KEYWORD2
@@ -625,13 +624,13 @@ unhex KEYWORD2 unhex_
updatePixels KEYWORD2 updatePixels_
vertex KEYWORD2 vertex_
width KEYWORD5 width
XMLElement KEYWORD2 XMLElement_
getChild KEYWORD3 XMLElement_getChild_
getChildCount KEYWORD3 XMLElement_getChildCount_
getChildren KEYWORD3 XMLElement_getChildren_
getContent KEYWORD3 XMLElement_getContent_
getFloat KEYWORD3 XMLElement_getFloat_
getInt KEYWORD3 XMLElement_getInt_
getName KEYWORD3 XMLElement_getName_
getString KEYWORD3 XMLElement_getString_
XMLElement KEYWORD2 XML_
getChild KEYWORD3 XML_getChild_
getChildCount KEYWORD3 XML_getChildCount_
getChildren KEYWORD3 XML_getChildren_
getContent KEYWORD3 XML_getContent_
getFloat KEYWORD3 XML_getFloat_
getInt KEYWORD3 XML_getInt_
getName KEYWORD3 XML_getName_
getString KEYWORD3 XML_getString_
year KEYWORD2 year_