Reference
An offline version of this documentation is available for download.
Shape
2D Primitives
Attributes
Curves
Vertex
Color
Creating and Reading
Setting
Typography
Attributes
Loading and Displaying
Image
Loading and Displaying
Pixels
Textures
Media
Video
- loadVideo()
- :getWidth()
- :getHeight()
- :isPlaying()
- :loop()
- :noLoop()
- :play()
- :pause()
- :seek()
- :stop()
- :time()
- :volume()
Transform
Environment
- cursor()
- deltaTime
- describe()
- displayDensity()
- displayHeight
- displayWidth
- focused
- frameCount
- frameRate()
- fullscreen()
- height
- noCursor()
- print()
- printToScreen()
- width
- windowResized()
- windowTitle()
Rendering
Math
Calculation
- abs()
- ceil()
- constrain()
- dist()
- exp()
- floor()
- fract()
- lerp()
- log()
- map()
- max()
- min()
- norm()
- pow()
- round()
- sq()
- sqrt()
Noise
Random
Trigonometry
I/O
Input
Output
Time and Date
Events
Keyboard
Mouse
- mouseButton
- mouseClicked()
- mouseDragged()
- mouseIsPressed
- mouseMoved()
- mousePressed()
- mouseReleased()
- mouseWheel()
- mouseX
- mouseY
- movedX
- movedY
- pmouseX
- pmouseY
Data
Conversion
Structure
Constants
Foundation
This reference page contains content adapted from p5.js and Processing by p5.js Contributors and Processing Foundation, licensed under CC BY-NC-SA 4.0.