Reference Summary
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
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()
pixelDensity()(Not Implemented)- print()
- width
- windowResized()
- windowTitle()
Rendering
blendMode()(Not Implemented)- size()
- createGraphics()
noCanvas()(Not Implemented)- resizeWindow()
Math
Calculation
- abs()
- ceil()
- constrain()
- dist()
- exp()
- floor()
- fract()
- lerp()
- log()
- map()
- max()
- min()
- norm()
- pow()
- round()
- sq()
- sqrt()
Noise
- noise()
noiseSeed()(Not Implemented)
Random
Trigonometry
I/O
Input
loadJSON()(Not Implemented)- loadStrings()
- loadTable()
loadXML()(Not Implemented)
Output
- save()
saveJSON()(Not Implemented)- saveStrings()
- saveTable()
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.