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