Structure
. (dot)
setup()
void
class
size()
/* */ (multiline comment)
false
noLoop()
this
true
new
// (comment)
, (comma)
delay()
super
exit()
{} (curly braces)
/** */ (doc comment)
draw()
loop()
implements
redraw()
; (semicolon)
[] (array access)
extends
null
() (parentheses)
return
= (assign)
. (dot)
setup()
void
class
size()
/* */ (multiline comment)
false
noLoop()
this
true
new
// (comment)
, (comma)
delay()
super
exit()
{} (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()
nf()
trim()
nfc()
nfs()
nfp()
match()
splitTokens()
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()
nf()
trim()
nfc()
nfs()
nfp()
match()
splitTokens()
Array Functions
shorten()concat()
subset()
append()
sort()
arraycopy()
reverse()
splice()
expand()
Control
>= (greater than or equal to)
<= (less than or equal to)
== (equality)
> (greater than)
!= (inequality)
while
break
default
switch()
case
else
if
&& (logical AND)
! (logical NOT)
Relational Operators
< (less than)>= (greater than or equal to)
<= (less than or equal to)
== (equality)
> (greater than)
!= (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()
bezierDetail()
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
bezierTangent()bezierDetail()
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()
keyReleased()
keyPressed()
key
keyPressed
keyTyped()
open()
loadStrings()
loadBytes()
link()
param()
millis()
year()
minute()
month()
day()
second()
Mouse
mouseDragged()mouseMoved()
mouseButton
mouseX
mouseReleased()
pmouseX
mousePressed()
mouseY
mousePressed
pmouseY
mouseClicked()
Keyboard
keyCodekeyReleased()
keyPressed()
key
keyPressed
keyTyped()
Files
openStream()open()
loadStrings()
loadBytes()
Web
status()link()
param()
Time & Date
hour()millis()
year()
minute()
month()
day()
second()
Output
print()
save()
saveBytes()
PrintWriter
beginRecord()
endRecord()
createWriter()
createReader()
Text Area
println()print()
Image
saveFrame()save()
Files
saveStrings()saveBytes()
PrintWriter
beginRecord()
endRecord()
createWriter()
createReader()
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()
brightness()
blue()
saturation()
green()
hue()
alpha()
color()
blendColor()
lerpColor()
Setting
background()colorMode()
stroke()
noFill()
noStroke()
fill()
Creating & Reading
red()brightness()
blue()
saturation()
green()
hue()
alpha()
color()
blendColor()
lerpColor()
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
-= (subtract assign)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
<< (left shift)
| (bitwise OR)
>> (right shift)
max()
round()
dist()
exp()
pow()
floor()
sqrt()
abs()
constrain()
mag()
log()
lerp()
sq()
ceil()
norm()
map()
tan()
sin()
cos()
degrees()
atan2()
atan()
radians()
asin()
noiseSeed()
randomSeed()
noiseDetail()
random()
Operators
+ (addition)-= (subtract assign)
- (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()
mag()
log()
lerp()
sq()
ceil()
norm()
map()
Trigonometry
acos()tan()
sin()
cos()
degrees()
atan2()
atan()
radians()
asin()
Random
noise()noiseSeed()
randomSeed()
noiseDetail()
random()