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
. (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()
splitTokens()
nf()
match()
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()splitTokens()
nf()
match()
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
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
breakswitch()
case
else
if
Logical Operators
|| (logical OR)&& (logical AND)
! (logical NOT)
Shape
line()
arc()
point()
quad()
ellipse()
rect()
bezier()
smooth()
strokeJoin()
noSmooth()
ellipseMode()
rectMode()
strokeCap()
bezierVertex()
beginShape()
curveVertex()
endShape()
2D Primitives
triangle()line()
arc()
point()
quad()
ellipse()
rect()
Curves
curve()bezier()
Attributes
strokeWeight()smooth()
strokeJoin()
noSmooth()
ellipseMode()
rectMode()
strokeCap()
Vertex
vertex()bezierVertex()
beginShape()
curveVertex()
endShape()
Input
mouseMoved()
mouseButton
mouseX
mouseReleased()
pmouseX
mousePressed()
mouseY
mousePressed
pmouseY
keyReleased()
keyPressed()
key
keyPressed
loadBytes()
millis()
year()
minute()
month()
day()
second()
Mouse
mouseDragged()mouseMoved()
mouseButton
mouseX
mouseReleased()
pmouseX
mousePressed()
mouseY
mousePressed
pmouseY
Keyboard
keyCodekeyReleased()
keyPressed()
key
keyPressed
Files
loadStrings()loadBytes()
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()
Color
colorMode()
stroke()
noFill()
noStroke()
fill()
red()
brightness()
blue()
saturation()
green()
hue()
alpha()
color()
Setting
background()colorMode()
stroke()
noFill()
noStroke()
fill()
Creating & Reading
blendColor()red()
brightness()
blue()
saturation()
green()
hue()
alpha()
color()
Image
PImage
image()
noTint()
imageMode()
tint()
copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
PImage
Loading & Displaying
loadImage()image()
noTint()
imageMode()
tint()
Pixels
filter()copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
Typography
PFont
loadFont()
textFont()
textAlign()
textLeading()
textWidth()
PFont
Loading & Displaying
text()loadFont()
textFont()
Attributes
textSize()textAlign()
textLeading()
textWidth()
Math
+ (addition)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
max()
round()
dist()
pow()
floor()
sqrt()
abs()
constrain()
norm()
lerp()
sq()
ceil()
map()
sin()
cos()
degrees()
atan2()
radians()
random()
Operators
-= (subtract assign)+ (addition)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
Calculation
min()max()
round()
dist()
pow()
floor()
sqrt()
abs()
constrain()
norm()
lerp()
sq()
ceil()
map()
Trigonometry
tan()sin()
cos()
degrees()
atan2()
radians()
Random
randomSeed()random()