Notice: This is a static archive of the Mobile Processing website, as the project is no longer significantly active. All forms and the Discourse boards are no longer functional, and the mobile website at http://wapmp.at/ is no longer available. Please visit the Mobile Processing Google Group for any remaining discussions and the Processing website for the latest news about Processing.





[] (array access)
= (assign)
, (comma)
// (comment)
. (dot)
/* */ (multiline comment)
new
null
() (parentheses)
return
; (semicolon)
this
void

Execution
destroy()
draw()
exit()
loop()
noLoop()
redraw()
resume()
setup()
suspend()





currentMemory()
framerate()
height
isColor()
numColors()
reportedMemory()
width





Primitive
boolean
byte
char
int

Composite
Array
Object
String

Conversion
str()

String Functions
join()
nf()
nfp()
nfs()
split()
trim()

Array Functions
append()
concat()
contract()
expand()
length()
reverse()
shorten()
splice()
subset()





Relational Operators
== (equality)

Iteration
while()

Conditionals
else
if()

Logical Operators
&& (logical AND)
! (logical NOT)
|| (logical OR)





popMatrix()
pushMatrix()
resetMatrix()
translate()





2D Primitives
ellipse()
ellipseMode()
line()
point()
quad()
rect()
rectMode()
triangle()

Curves
bezier()
curve()

Stroke attributes
strokeWeight()

Vertex
beginShape()
bezierVertex()
curveVertex()
endShape()
vertex()





Setting
background()
colorMode()
fill()
noFill()
noStroke()
stroke()

Creating & Reading
color()





Keyboard
key
keyCode
keyPressed()
keyReleased()
rawKeyCode
softkey()
softkeyPressed()

Touchscreen
pointerDragged()
pointerPressed()
pointerReleased()
pointerX
pointerY

Text Input
multitap()
multitapBuffer
multitapBufferIndex
multitapBufferLength
multitapClear()
multitapDeleteChar()
noMultitap()
textInput()

Text Output
print()
println()

Time & Date
day()
hour()
millis()
minute()
month()
second()
year()

Files
loadBytes()
loadStrings()
openStream()
saveBytes()
saveStrings()

Libraries
libraryEvent()





PClient
PRequest





PImage

Loading & Displaying
image()
loadImage()





PFont

Loading & Displaying
loadFont()
text()
textFont()
textWrap()

Attributes
textAlign()
textWidth()





PButton
PCheckBox
PComponent
PContainer
PImageLabel
PLabel
PList
PRadioButton
PRadioButtonGroup
PScrollBar
PTextField





Operators
+= (add assign)
+ (addition)
-- (decrement)
/ (divide)
++ (increment)
- (minus)
% (modulo)
* (multiply)
-= (subtract assign)

Bitwise Operators
& (bitwise AND)
| (bitwise OR)
<< (left shift)
>> (right shift)

Calculation
abs()
constrain()
dist()
max()
min()
pow()
sq()

Random
random()

Fixed Point - Trigonometry
atan()
atan2()
cos()
radians()
sin()

Fixed Point - Calculation
ceil()
div()
floor()
mul()
round()
sqrt()

Fixed Point - Conversion
fptoi()
itofp()





FP_PRECISION

Fixed Point
HALF_PI (1.57079...)
ONE (1.0)
PI (3.14159...)
TWO_PI (6.28318...)