You are viewing the Abridged Reference. It omits description and functions for drawing in 3D and for detailed drawing and data manipulation. Click Extended above to view additional reference.
Structure
[] (array access)
= (assign)
class
, (comma)
// (comment)
{} (curly braces)
delay()
/** */ (doc comment)
. (dot)
draw()
exit()
extends
false
implements
loop()
/* */ (multiline comment)
new
noLoop()
null
() (parentheses)
redraw()
return
; (semicolon)
setup()
size()
super
this
true
void
[] (array access)
= (assign)
class
, (comma)
// (comment)
{} (curly braces)
delay()
/** */ (doc comment)
. (dot)
draw()
exit()
extends
false
implements
loop()
/* */ (multiline comment)
new
noLoop()
null
() (parentheses)
redraw()
return
; (semicolon)
setup()
size()
super
this
true
void
Data
byte
char
color
float
int
Object
String
boolean()
byte()
char()
float()
hex()
int()
str()
unbinary()
unhex()
split()
splitTokens()
arraycopy()
concat()
expand()
reverse()
shorten()
sort()
splice()
subset()
Primitive
booleanbyte
char
color
float
int
Composite
ArrayObject
String
Conversion
binary()boolean()
byte()
char()
float()
hex()
int()
str()
unbinary()
unhex()
String Functions
nf()split()
splitTokens()
Array Functions
append()arraycopy()
concat()
expand()
reverse()
shorten()
sort()
splice()
subset()
Control
> (greater than)
>= (greater than or equal to)
!= (inequality)
< (less than)
<= (less than or equal to)
while
case
else
if
switch()
! (logical NOT)
|| (logical OR)
Relational Operators
== (equality)> (greater than)
>= (greater than or equal to)
!= (inequality)
< (less than)
<= (less than or equal to)
Iteration
forwhile
Conditionals
breakcase
else
if
switch()
Logical Operators
&& (logical AND)! (logical NOT)
|| (logical OR)
Shape
ellipse()
line()
point()
quad()
rect()
triangle()
curve()
noSmooth()
rectMode()
smooth()
strokeCap()
strokeJoin()
strokeWeight()
bezierVertex()
curveVertex()
endShape()
vertex()
2D Primitives
arc()ellipse()
line()
point()
quad()
rect()
triangle()
Curves
bezier()curve()
Attributes
ellipseMode()noSmooth()
rectMode()
smooth()
strokeCap()
strokeJoin()
strokeWeight()
Vertex
beginShape()bezierVertex()
curveVertex()
endShape()
vertex()
Input
mouseDragged()
mouseMoved()
mousePressed()
mousePressed
mouseReleased()
mouseX
mouseY
pmouseX
pmouseY
keyCode
keyPressed()
keyPressed
keyReleased()
loadStrings()
hour()
millis()
minute()
month()
second()
year()
Mouse
mouseButtonmouseDragged()
mouseMoved()
mousePressed()
mousePressed
mouseReleased()
mouseX
mouseY
pmouseX
pmouseY
Keyboard
keykeyCode
keyPressed()
keyPressed
keyReleased()
Files
loadBytes()loadStrings()
Time & Date
day()hour()
millis()
minute()
month()
second()
year()
Output
println()
saveFrame()
beginRecord()
createReader()
createWriter()
endRecord()
saveBytes()
saveStrings()
Text Area
print()println()
Image
save()saveFrame()
Files
PrintWriterbeginRecord()
createReader()
createWriter()
endRecord()
saveBytes()
saveStrings()
Color
colorMode()
fill()
noFill()
noStroke()
stroke()
blendColor()
blue()
brightness()
color()
green()
hue()
red()
saturation()
Setting
background()colorMode()
fill()
noFill()
noStroke()
stroke()
Creating & Reading
alpha()blendColor()
blue()
brightness()
color()
green()
hue()
red()
saturation()
Image
PImage
imageMode()
loadImage()
noTint()
tint()
copy()
filter()
get()
loadPixels()
pixels[]
set()
updatePixels()
PImage
Loading & Displaying
image()imageMode()
loadImage()
noTint()
tint()
Pixels
blend()copy()
filter()
get()
loadPixels()
pixels[]
set()
updatePixels()
Typography
PFont
text()
textFont()
textLeading()
textSize()
textWidth()
PFont
Loading & Displaying
loadFont()text()
textFont()
Attributes
textAlign()textLeading()
textSize()
textWidth()
Math
+ (addition)
-- (decrement)
/ (divide)
++ (increment)
- (minus)
% (modulo)
* (multiply)
-= (subtract assign)
ceil()
constrain()
dist()
floor()
lerp()
map()
max()
min()
norm()
pow()
round()
sq()
sqrt()
cos()
degrees()
radians()
sin()
tan()
randomSeed()
Operators
+= (add assign)+ (addition)
-- (decrement)
/ (divide)
++ (increment)
- (minus)
% (modulo)
* (multiply)
-= (subtract assign)
Calculation
abs()ceil()
constrain()
dist()
floor()
lerp()
map()
max()
min()
norm()
pow()
round()
sq()
sqrt()
Trigonometry
atan2()cos()
degrees()
radians()
sin()
tan()
Random
random()randomSeed()

