Structure
[] (array access)
= (assign)
catch
class
, (comma)
// (comment)
{} (curly braces)
delay()
/** */ (doc comment)
. (dot)
draw()
exit()
extends
false
final
implements
import
loop()
/* */ (multiline comment)
new
noLoop()
null
() (parentheses)
popStyle()
private
public
pushStyle()
redraw()
return
; (semicolon)
setup()
size()
static
super
this
true
try
void
[] (array access)
= (assign)
catch
class
, (comma)
// (comment)
{} (curly braces)
delay()
/** */ (doc comment)
. (dot)
draw()
exit()
extends
false
final
implements
import
loop()
/* */ (multiline comment)
new
noLoop()
null
() (parentheses)
popStyle()
private
public
pushStyle()
redraw()
return
; (semicolon)
setup()
size()
static
super
this
true
try
void
Data
color
byte
char
double
float
int
long
Array
HashMap
Object
String
XMLElement
binary()
byte()
char()
float()
hex()
int()
str()
unbinary()
unhex()
match()
matchAll()
nf()
nfc()
nfp()
nfs()
split()
splitTokens()
trim()
arrayCopy()
concat()
expand()
reverse()
shorten()
sort()
splice()
subset()
Primitive
booleancolor
byte
char
double
float
int
long
Composite
ArrayListArray
HashMap
Object
String
XMLElement
Conversion
boolean()binary()
byte()
char()
float()
hex()
int()
str()
unbinary()
unhex()
String Functions
join()match()
matchAll()
nf()
nfc()
nfp()
nfs()
split()
splitTokens()
trim()
Array Functions
append()arrayCopy()
concat()
expand()
reverse()
shorten()
sort()
splice()
subset()
Control
> (greater than)
>= (greater than or equal to)
!= (inequality)
<= (less than or equal to)
< (less than)
while
case
?: (conditional)
continue
default
else
if
switch()
! (logical NOT)
|| (logical OR)
Relational Operators
== (equality)> (greater than)
>= (greater than or equal to)
!= (inequality)
<= (less than or equal to)
< (less than)
Iteration
forwhile
Conditionals
breakcase
?: (conditional)
continue
default
else
if
switch()
Logical Operators
&& (logical AND)! (logical NOT)
|| (logical OR)
Shape
PShape
ellipse()
line()
point()
quad()
rect()
triangle()
bezier()
bezierDetail()
bezierPoint()
curveTightness()
curve()
curveDetail()
curvePoint()
curveTangent()
sphere()
sphereDetail()
noSmooth()
rectMode()
smooth()
strokeCap()
strokeJoin()
strokeWeight()
bezierVertex()
curveVertex()
endShape()
texture()
textureMode()
vertex()
shape()
shapeMode()
PShape
2D Primitives
arc()ellipse()
line()
point()
quad()
rect()
triangle()
Curves
bezierTangent()bezier()
bezierDetail()
bezierPoint()
curveTightness()
curve()
curveDetail()
curvePoint()
curveTangent()
3D Primitives
box()sphere()
sphereDetail()
Attributes
ellipseMode()noSmooth()
rectMode()
smooth()
strokeCap()
strokeJoin()
strokeWeight()
Vertex
beginShape()bezierVertex()
curveVertex()
endShape()
texture()
textureMode()
vertex()
Loading & Displaying
loadShape()shape()
shapeMode()
Input
mouseButton
mouseClicked()
mouseDragged()
mouseMoved()
mousePressed()
mouseReleased()
mouseX
mouseY
pmouseX
pmouseY
key
keyCode
keyPressed()
keyReleased()
keyTyped()
createInput()
createReader()
loadBytes()
loadStrings()
open()
selectFolder()
selectInput()
param()
status()
hour()
millis()
minute()
month()
second()
year()
Mouse
mousePressedmouseButton
mouseClicked()
mouseDragged()
mouseMoved()
mousePressed()
mouseReleased()
mouseX
mouseY
pmouseX
pmouseY
Keyboard
keyPressedkey
keyCode
keyPressed()
keyReleased()
keyTyped()
Files
BufferedReadercreateInput()
createReader()
loadBytes()
loadStrings()
open()
selectFolder()
selectInput()
Web
link()param()
status()
Time & Date
day()hour()
millis()
minute()
month()
second()
year()
Output
println()
saveFrame()
beginRaw()
beginRecord()
createOutput()
createWriter()
endRaw()
endRecord()
saveBytes()
saveStream()
saveStrings()
selectOutput()
Text Area
print()println()
Image
save()saveFrame()
Files
PrintWriterbeginRaw()
beginRecord()
createOutput()
createWriter()
endRaw()
endRecord()
saveBytes()
saveStream()
saveStrings()
selectOutput()
Transform
applyMatrix()
popMatrix()
printMatrix()
pushMatrix()
resetMatrix()
rotate()
rotateX()
rotateY()
rotateZ()
scale()
skewX()
skewY()
translate()
applyMatrix()
popMatrix()
printMatrix()
pushMatrix()
resetMatrix()
rotate()
rotateX()
rotateY()
rotateZ()
scale()
skewX()
skewY()
translate()
Lights, Camera
directionalLight()
lightSpecular()
lightFalloff()
lights()
noLights()
normal()
pointLight()
spotLight()
camera()
endCamera()
frustum()
ortho()
perspective()
printCamera()
printProjection()
modelY()
modelZ()
screenX()
screenY()
screenZ()
emissive()
shininess()
specular()
Lights
ambientLight()directionalLight()
lightSpecular()
lightFalloff()
lights()
noLights()
normal()
pointLight()
spotLight()
Camera
beginCamera()camera()
endCamera()
frustum()
ortho()
perspective()
printCamera()
printProjection()
Coordinates
modelX()modelY()
modelZ()
screenX()
screenY()
screenZ()
Material Properties
ambient()emissive()
shininess()
specular()
Color
colorMode()
fill()
noFill()
noStroke()
stroke()
blendColor()
blue()
brightness()
color()
green()
hue()
lerpColor()
red()
saturation()
Setting
background()colorMode()
fill()
noFill()
noStroke()
stroke()
Creating & Reading
alpha()blendColor()
blue()
brightness()
color()
green()
hue()
lerpColor()
red()
saturation()
Image
PImage
createImage()
imageMode()
loadImage()
noTint()
requestImage()
tint()
copy()
filter()
get()
loadPixels()
pixels[]
set()
updatePixels()
PImage
createImage()
Loading & Displaying
image()imageMode()
loadImage()
noTint()
requestImage()
tint()
Pixels
blend()copy()
filter()
get()
loadPixels()
pixels[]
set()
updatePixels()
Typography
PFont
loadFont()
text()
textFont()
textLeading()
textMode()
textSize()
textWidth()
textDescent()
PFont
Loading & Displaying
createFont()loadFont()
text()
textFont()
Attributes
textAlign()textLeading()
textMode()
textSize()
textWidth()
Metrics
textAscent()textDescent()
Math
PVector
+ (addition)
-- (decrement)
/ (divide)
/= (divide assign)
++ (increment)
- (minus)
% (modulo)
* (multiply)
*= (multiply assign)
-= (subtract assign)
| (bitwise OR)
<< (left shift)
>> (right shift)
ceil()
constrain()
dist()
exp()
floor()
lerp()
log()
mag()
map()
max()
min()
norm()
pow()
round()
sq()
sqrt()
asin()
atan()
atan2()
cos()
degrees()
radians()
sin()
tan()
noiseDetail()
noiseSeed()
random()
randomSeed()
PVector
Operators
+= (add assign)+ (addition)
-- (decrement)
/ (divide)
/= (divide assign)
++ (increment)
- (minus)
% (modulo)
* (multiply)
*= (multiply assign)
-= (subtract assign)
Bitwise Operators
& (bitwise AND)| (bitwise OR)
<< (left shift)
>> (right shift)
Calculation
abs()ceil()
constrain()
dist()
exp()
floor()
lerp()
log()
mag()
map()
max()
min()
norm()
pow()
round()
sq()
sqrt()
Trigonometry
acos()asin()
atan()
atan2()
cos()
degrees()
radians()
sin()
tan()
Random
noise()noiseDetail()
noiseSeed()
random()
randomSeed()