Structure
. (dot)
super
setup()
class
exit()
void
size()
try
import
/* */ (multiline comment)
false
noLoop()
this
true
new
// (comment)
, (comma)
delay()
pushStyle()
{} (curly braces)
catch
/** */ (doc comment)
draw()
loop()
implements
redraw()
static
; (semicolon)
final
[] (array access)
extends
private
null
public
return
popStyle()
() (parentheses)
= (assign)
. (dot)
super
setup()
class
exit()
void
size()
try
import
/* */ (multiline comment)
false
noLoop()
this
true
new
// (comment)
, (comma)
delay()
pushStyle()
{} (curly braces)
catch
/** */ (doc comment)
draw()
loop()
implements
redraw()
static
; (semicolon)
final
[] (array access)
extends
private
null
public
return
popStyle()
() (parentheses)
= (assign)
Data
color
double
char
float
int
boolean
byte
String
XMLElement
Array
Object
ArrayList
char()
int()
hex()
binary()
unhex()
byte()
str()
boolean()
float()
join()
splitTokens()
nf()
match()
trim()
nfc()
matchAll()
nfs()
nfp()
concat()
subset()
append()
sort()
arrayCopy()
reverse()
splice()
expand()
Primitive
longcolor
double
char
float
int
boolean
byte
Composite
HashMapString
XMLElement
Array
Object
ArrayList
Conversion
unbinary()char()
int()
hex()
binary()
unhex()
byte()
str()
boolean()
float()
String Functions
split()join()
splitTokens()
nf()
match()
trim()
nfc()
matchAll()
nfs()
nfp()
Array Functions
shorten()concat()
subset()
append()
sort()
arrayCopy()
reverse()
splice()
expand()
Control
>= (greater than or equal to)
== (equality)
> (greater than)
!= (inequality)
<= (less than or equal to)
while
break
switch()
?: (conditional)
continue
case
else
if
&& (logical AND)
! (logical NOT)
Relational Operators
< (less than)>= (greater than or equal to)
== (equality)
> (greater than)
!= (inequality)
<= (less than or equal to)
Iteration
forwhile
Conditionals
defaultbreak
switch()
?: (conditional)
continue
case
else
if
Logical Operators
|| (logical OR)&& (logical AND)
! (logical NOT)
Shape
PShape
line()
arc()
point()
quad()
ellipse()
rect()
bezierDetail()
curveTightness()
bezierPoint()
curveDetail()
curvePoint()
curveTangent()
curve()
bezier()
sphere()
sphereDetail()
smooth()
strokeJoin()
noSmooth()
ellipseMode()
rectMode()
strokeCap()
bezierVertex()
textureMode()
beginShape()
texture()
curveVertex()
endShape()
loadShape()
shape()
PShape
2D Primitives
triangle()line()
arc()
point()
quad()
ellipse()
rect()
Curves
bezierTangent()bezierDetail()
curveTightness()
bezierPoint()
curveDetail()
curvePoint()
curveTangent()
curve()
bezier()
3D Primitives
box()sphere()
sphereDetail()
Attributes
strokeWeight()smooth()
strokeJoin()
noSmooth()
ellipseMode()
rectMode()
strokeCap()
Vertex
vertex()bezierVertex()
textureMode()
beginShape()
texture()
curveVertex()
endShape()
Loading & Displaying
shapeMode()loadShape()
shape()
Input
mouseMoved()
mouseButton
mouseX
mouseReleased()
pmouseX
mousePressed()
mouseY
mousePressed
pmouseY
mouseClicked()
keyCode
keyReleased()
keyPressed()
key
keyPressed
createReader()
selectFolder()
createInput()
open()
loadStrings()
selectInput()
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
BufferedReadercreateReader()
selectFolder()
createInput()
open()
loadStrings()
selectInput()
loadBytes()
Web
status()link()
param()
Time & Date
hour()millis()
year()
minute()
month()
day()
second()
Output
print()
save()
saveStrings()
createOutput()
selectOutput()
saveBytes()
createWriter()
PrintWriter
beginRecord()
beginRaw()
saveStream()
endRaw()
Text Area
println()print()
Image
saveFrame()save()
Files
endRecord()saveStrings()
createOutput()
selectOutput()
saveBytes()
createWriter()
PrintWriter
beginRecord()
beginRaw()
saveStream()
endRaw()
Transform
rotateY()
printMatrix()
pushMatrix()
shearX()
rotateZ()
applyMatrix()
scale()
popMatrix()
shearY()
translate()
resetMatrix()
rotate()
rotateX()
rotateY()
printMatrix()
pushMatrix()
shearX()
rotateZ()
applyMatrix()
scale()
popMatrix()
shearY()
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()
loadImage()
image()
noTint()
imageMode()
tint()
copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
PImage
createImage()
Loading & Displaying
requestImage()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
PVector
-= (subtract assign)
/= (divide assign)
- (minus)
*= (multiply assign)
% (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()
PVector
Operators
+ (addition)-= (subtract assign)
/= (divide assign)
- (minus)
*= (multiply assign)
% (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()