Viewing
Options:
Abridged
Abridged (A-Z)
Complete
Complete
(A-Z)
Languages:
English
Chinese (Simplified)
Chinese (Traditional)
French
Indonesian
Italian
Japanese
Korean
Spanish
Portuguese (Brazil)
Turkish
The abridged reference
omits description and functions for drawing in 3D and for detailed
drawing and data manipulation. The complete reference documents every
aspect of the core processing software.
() (parentheses)
, (comma)
. (dot)
/* */ (multiline
comment)
/** */ (doc comment)
// (comment)
; (semicolon)
= (assign)
[] (array access)
class
delay()
draw()
false
loop()
new
noLoop()
redraw()
return
setup()
size()
true
void
{} (curly braces)
cursor()
frameCount
framerate
framerate()
height
noCursor()
screen
width
Primitive
boolean
byte
char
color
float
int
Composite
Array
Object
String
Conversion
boolean()
byte()
char()
float()
int()
str()
Relational Operators
!= (inequality)
> (greater than)
>=
(greater than or equal to)
< (less than)
<= (less
than or equal to)
== (equality)
Iteration
for()
while()
Conditionals
else
if()
Logical Operators
! (logical NOT)
&&
(logical AND)
|| (logical OR)
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()
Mouse
mouseButton
mouseDragged()
mouseMoved()
mousePressed
mousePressed()
mouseReleased()
mouseX
mouseY
pmouseX
pmouseY
Keyboard
key
keyCode
keyPressed
keyPressed()
keyReleased()
Time & Date
day()
hour()
millis()
minute()
month()
second()
year()
Files
loadBytes()
loadStrings()
Text Area
print()
println()
Image
save()
saveFrame()
Files
saveBytes()
saveStrings()
popMatrix()
pushMatrix()
rotate()
scale()
translate()
Setting
background()
colorMode()
fill()
noFill()
noStroke()
stroke()
Creating &
Reading
alpha()
blue()
brightness()
color()
green()
hue()
red()
saturation()
PImage
Loading &
Displaying
image()
imageMode()
loadImage()
noTint()
tint()
Pixels
blend()
copy()
filter()
get()
loadPixels()
pixels[]
set()
updatePixels()
PFont
Loading &
Displaying
createFont()
loadFont()
text()
textFont()
Attributes
textAlign()
textLeading()
textMode()
textSize()
textWidth()
Operators
% (modulo)
* (multiply)
+ (addition)
++ (increment)
+= (add assign)
- (minus)
-- (decrement)
-= (subtract assign)
/ (divide)
Calculation
abs()
ceil()
constrain()
dist()
floor()
max()
min()
pow()
round()
sq()
sqrt()
Trigonometry
atan2()
cos()
degrees()
radians()
sin()
tan()
Random
random()
randomSeed()
HALF_PI (1.57079...)
PI (3.14159...)
TWO_PI (6.28318...)
PSound
Loading
loadSound()