You are viewing the Abridged Reference, which omits description and functions for drawing in 3D and for detailed drawing and data manipulation. Click Complete above to view the entire reference.
. (dot)
setup()
void
class
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)
setup()
void
class
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)
Primitive
colorchar
float
int
boolean
byte
Composite
StringArray
Object
Conversion
unbinary()char()
int()
hex()
binary()
unhex()
byte()
str()
boolean()
float()
Relational Operators
< (less than)>= (greater than or equal to)
<= (less than or equal to)
== (equality)
> (greater than)
!= (inequality)
Iteration
for()while()
Conditionals
breakswitch()
case
else
if()
Logical Operators
|| (logical OR)&& (logical AND)
! (logical NOT)
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()
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()
Setting
background()colorMode()
stroke()
noFill()
noStroke()
fill()
Creating & Reading
red()brightness()
blue()
saturation()
green()
hue()
alpha()
color()
PImage
copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
image()
noTint()
imageMode()
tint()
Pixels
filter()copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
Loading & Displaying
loadImage()image()
noTint()
imageMode()
tint()
PFont
textAlign()
textLeading()
textWidth()
loadFont()
textFont()
Attributes
textSize()textAlign()
textLeading()
textWidth()
Loading & Displaying
text()loadFont()
textFont()
Operators
+ (addition)-= (subtract assign)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
Calculation
min()max()
round()
dist()
pow()
floor()
sqrt()
abs()
constrain()
sq()
ceil()
Trigonometry
tan()sin()
cos()
degrees()
atan2()
radians()
Random
randomSeed()random()