Processing.py Reference. Processing is not a single programming language, but an arts-centric system for learning, teaching, and making visual form with code. This Reference documents its Python Mode.
Structure
- # (comment)
- ''' ''' (multiline comment)
- () (parentheses)
- , (comma)
- . (dot)
- : (Colon)
- = (assign)
- False
- Globals
- None
- Slice
- String Formatting
- True
- [] (Index brackets)
- add_library
- class
- def
- del
- draw()
- except
- exit()
- in
- len()
- loop()
- noLoop()
- pass
- popStyle()
- pushStyle()
- range()
- redraw()
- return
- setup()
- super
- try
- {} (Curly braces)
Environment
Data
Primitive
Composite
Conversion
Dictionary Methods
List Methods
String Methods
List Functions
String Functions
Control
Relational Operators
- != (inequality)
- < (less than)
- <= (less than or equal to)
- == (equality)
- > (greater than)
- >= (greater than or equal to)
Iteration
Conditionals
Logical Operators
Shape
2D Primitives
Curves
- bezier()
- bezierDetail()
- bezierPoint()
- bezierTangent()
- curve()
- curveDetail()
- curvePoint()
- curveTangent()
- curveTightness()
3D Primitives
Attributes
Vertex
- beginContour()
- beginShape()
- bezierVertex()
- curveVertex()
- endContour()
- endShape()
- quadraticVertex()
- texture()
- textureMode()
- vertex()
Loading & Displaying
Input
Mouse
- mouseButton
- mouseClicked()
- mouseDragged()
- mouseMoved()
- mousePressed
- mousePressed()
- mouseReleased()
- mouseWheel()
- mouseX
- mouseY
- pmouseX
- pmouseY
Keyboard
Files
Time & Date
Output
Text Area
Image
Files
Transform
Lights, Camera
Lights
- ambientLight()
- directionalLight()
- lightFalloff()
- lightSpecular()
- lights()
- noLights()
- normal()
- pointLight()
- spotLight()
Camera
Coordinates
Material Properties
Color
Setting
Creating & Reading
Image
Loading & Displaying
Textures
Pixels
Rendering
Shaders
Typography
Loading & Displaying
Attributes
Metrics
Math
PVector
Operators
- % (modulo)
- * (multiply)
- *= (multiply assign)
- + (addition)
- += (add assign)
- - (minus)
- -= (subtract assign)
- / (divide)
- /= (divide assign)
Bitwise Operators
Calculation
- abs()
- ceil()
- constrain()
- dist()
- exp()
- floor()
- lerp()
- log()
- mag()
- map()
- max()
- min()
- norm()
- pow()
- round()
- sq()
- sqrt()
Trigonometry
Random
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License