//////// SHAPES ////////	
point(x, y);
point(x, y, z);
line(x1,y1,  x2,y2);
line(x1,y1,z1,  x2,y2,z2);

rectMode(MODE);             //  CORNER, CORNERS, CENTER, or RADIUS
rect(x,y,  width,height);

triangle(x1,y1,  x2,y2,  x3,y3);
quad(x1,y1,  x2,y2,  x3,y3,  x4,y4);

ellipseMode(MODE);          //  CORNER, CORNERS, CENTER, or RADIUS
ellipse(x,y,  width,height);

arc(x,y,  width,height,  start,stop);    // start/stop in radians    
curve(x1,y1,  x2,y2,  x3,y3,  x4,y4);
curve(x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4);

smooth();
noSmooth();


//////// COLORS, STROKE & FILL, ETC. ////////	
colorMode(mode, range1,range2,range3,range4);  // RGB or HSB.  [ranges optional]

background(gray)                     // [, alpha] is optional for all background()
background(value1, value2, value3);  // RGB or HSB,  as per colorMode()
background(color);                   // color: any value of the color datatype
background(hex);                     // int: hexadecimal (e.g. #FFCC00 or 0xFFFFCC00)

strokeJoin(MODE);                    // MITER, BEVEL, or ROUND
strokeCap(MODE);                     // SQUARE, PROJECT, or ROUND
strokeWeight(width);
stroke(gray);                        // [, alpha] is optional for all stroke()
stroke(value1, value2, value3);      // RGB or HSB,  as per colorMode()
stroke(color);                       // color: any value of the color datatype
stroke(hex);                         // int: hexadecimal (e.g. #FFCC00 or 0xFFFFCC00)
noStroke();

fill(gray);                        // [, alpha] is optional for all fill()
fill(value1, value2, value3);      // RGB or HSB,  as per colorMode()
fill(color);                       // color: any value of the color datatype
fill(hex);                         // int: hexadecimal (e.g. #FFCC00 or 0xFFFFCC00)
noFill();

cursor();
cursor(MODE);               //  ARROW, CROSS, HAND, MOVE, TEXT, WAIT
cursor(image, x, y);        //  PImage, active-spot


//////// INITIALIZATION & STRUCTURE ////////
size(width, height);
size(width, height, MODE);        //MODE: P2D, P3D, JAVA2D, or OPENGL

frameRate(fps);
import ...;
	
loop()
redraw()
draw()
noLoop()

void setup() {  ... statements; ... }
void draw() {  ... statements; ... }

status( "hello, world!" );
link(url);
link(url, target);
param(s);            // (Applet in a browser.)

text(data, x, y);                      // [, z]
text(stringdata, x, y, width, height)  // [, z]