Reference
Environment
- describe(), describeWithDisplay()
- describeElement(), describeElementWithDisplay()
- textOutput(), textOutputWithDisplay()
- gridOutput(), gridOutputWithDisplay()
- print()
- frameCount
- deltaTime
- focused
- cursor(), cursorX(), cursorXY()
- frameRate(), getFrameRate(), setFrameRate()
- getTargetFrameRate()
- noCursor()
- displayWidth
- displayHeight
- windowWidth
- windowHeight
- windowResized()
- width
- height
- fullscreen(), getFullscreen(), setFullscreen()
- pixelDensity(), getPixelDensity(), setPixelDensity()
- displayDensity(), getDisplayDensity()
- getURL()
- getURLPath()
- getURLParams()
Color
Shape
- arc(), arcWithMode(), archWithDetail()
- ellipse()
- circle()
- line(), line2D(), line3D()
- point(), point2D(), point3D(), pointFromVector()
- quad(), quad3D(), quadWithDetail(), quad3DWithDetail()
- rect(), roundedRect(), rectWithDetail()
- square(), roundedSquare()
- triangle()
- ellipseMode()
- noSmooth()
- rectMode()
- smooth()
- strokeCap()
- strokeJoin()
- strokeWeight()
- bezier(), bezier3D()
- bezierDetail()
- bezierPoint()
- bezierTangent()
- curve(), curve3D()
- curveDetail()
- curveTightness()
- curvePoint()
- curveTangent()
- beginContour()
- endContour()
- bezierVertex(), bezierVertex3D()
- curveVertex(), curveVertex3D()
- beginShape(), beginShapeWithMode()
- quadraticVertex(), quadraticVertex3D()
- vertex(), vertex3D()
- normal()
- plane()
- box(), cube(), boxWithDetail(), boxWithDefaults()
- sphere(), sphereWithDetail()
- cylinder(), cylinderWithDefaults(), cylinderWithDetail(), cylinderWithDetailAndCap()
- cone(), coneWithDefaults(), coneWithDetail(), coneWithDetailAndCap()
- ellipsoid(), ellipsoidWithDefaults(), ellipsoidWithDetail()
- loadModel(), loadModelWithCallbacks(), loadModelWithCallbacksAndFileType()
- model()
- p5.Geometry/computeFaces()
- p5.Geometry/computeNormals()
- p5.Geometry/averageNormals()
- p5.Geometry/averagePoleNormals()
- p5.Geometry/normalize()
Structure
DOM
- p5.Element/elt
- p5.Element/parent(), p5.Element/getParent(), p5.Element/getParentBySelector()
- p5.Element/id(), p5.Element/getId(), p5.Element/setId()
- p5.Element/class(), p5.Element/getClass(), p5.Element/setClass()
- p5.Element/mousePressed(), p5.Element/clearMousePressed()
- p5.Element/doubleClicked(), p5.Element/clearDoubleClicked()
- p5.Element/mouseWheel(), p5.Element/clearMouseWheel()
- p5.Element/mouseReleased(), p5.Element/clearMouseReleased()
- p5.Element/mouseClicked(), p5.Element/clearMouseClicked()
- p5.Element/mouseMoved(), p5.Element/clearMouseMoved()
- p5.Element/mouseOver(), p5.Element/clearMouseOver()
- p5.Element/mouseOut(), p5.Element/clearMouseOut()
- p5.Element/touchMoved(), p5.Element/clearTouchMoved()
- p5.Element/touchStarted(), p5.Element/clearTouchStarted()
- p5.Element/touchEnded(), p5.Element/clearTouchEnded()
- p5.Element/dragOver(), p5.Element/clearDragOver()
- p5.Element/dragLeave(), p5.Element/clearDragLeave()
- p5.Element/addClass()
- p5.Element/removeClass()
- p5.Element/hasClass()
- p5.Element/toggleClass()
- p5.Element/child()
- p5.Element/center(), p5.Element/centerWithAlign()
- p5.Element/html(), p5.Element/getHtml(), p5.Element/setHtml(), p5.Element/appendHtml()
- p5.Element/position(), p5.Element/setPosition(), p5.Element/setPositionWithType()
- p5.Element/style(), p5.Element/setStyle(), p5.Element/getStyle()
- p5.Element/attribute(), p5.Element/setAttribute(), p5.Element/getAttribute()
- p5.Element/removeAttribute()
- p5.Element/value(), p5.Element/getValue(), p5.Element/setValue()
- p5.Element/show()
- p5.Element/hide()
- p5.Element/size(), p5.Element/setSize(), p5.Element/setWidth()
- p5.Element/drop(), p5.Element/dropWithCalback()
- select(), selectIn()
- selectAll(), selectAllIn()
- removeElements()
- changed(), p5.Element/changed(), p5.Element/clearChanged()
- input(), p5.Element/input(), p5.Element/clearInput()
- createDiv()
- createP()
- createImg(), createImgWithCors(), createImgWithCallback()
- createA(), createAWithTarget()
- createSlider(), createSliderWithOptions()
- createButton(), createButtonWithValue()
- createCheckbox(), createCheckboxWithLabel(), createCheckboxWithLabelAndValue()
- createSelect(), createMultipleSelect(), createSelectFromExisting()
- createRadio(), createRadioWithName(), createRadioFromContainer(), createRadioFromContainerWithName()
- createColorPicker(), createColorPickerWithValue()
- createInput(), createInputWithValue(), createInputWithValueAndType()
- createFileInput(), createFileInputMultiple()
- createVideo(), createVideoFromArray(), createVideoWithCallback(), createVideoFromArrayWithCallback()
- createAudio(), createAudioFromArray(), createAudioWithCallback(), createAudioFromArrayWithCallback()
- createCapture(), createCaptureWithCallback()
- createElement(), createElementWithContent()
- p5.MediaElement/src
- p5.MediaElement/play()
- p5.MediaElement/stop()
- p5.MediaElement/pause()
- p5.MediaElement/loop()
- p5.MediaElement/noLoop()
- p5.MediaElement/autoplay(), p5.MediaElement/setAutoplay()
- p5.MediaElement/volume(), p5.MediaElement/setVolume(), p5.MediaElement/getVolume()
- p5.MediaElement/speed(), p5.MediaElement/setSpeed(), p5.MediaElement/getSpeed()
- p5.MediaElement/time(), p5.MediaElement/getTime(), p5.MediaElement/setTime()
- p5.MediaElement/duration(), p5.MediaElement/getDuration()
- p5.MediaElement/onended()
- p5.MediaElement/showControls()
- p5.MediaElement/hideControls()
- p5.MediaElement/addCue()
- p5.MediaElement/removeCue()
- p5.MediaElement/clearCues()
- p5.File/file
- p5.File/type
- p5.File/subtype
- p5.File/name
- p5.File/size
- p5.File/data
Rendering
- p5.Graphics/reset()
- p5.Graphics/remove()
- createCanvas(), createWebGLCanvas(), createCanvasWithMode(), createCanvasAndReturn()
- resizeCanvas(), resizeCanvasWithoutRedraw()
- noCanvas()
- createGraphics(), createWebGLGraphics()
- blendMode()
- drawingContext
- setAttributes(), setAttribute()
- applyMatrix(), applyMatrix2x3(), applyMatrix4x4()
- resetMatrix()
- rotate()
- rotateX()
- rotateY()
- rotateZ()
- scale(), scaleXY(), scaleXYZ(), scale3D(), scaleFromVector(), scaleFromValues()
- shearX()
- shearY()
- translate(), translateZ(), translate3D(), translateFromVector()
Data
Events
Image
- createImage()
- saveCanvas(), saveCanvasAs(), saveSpecificCanvas(), saveSpecificCanvasAs()
- saveFrames(), saveFramesWithCallback()
- p5.Image/width
- p5.Image/height
- p5.Image/pixels
- p5.Image/loadPixels()
- p5.Image/updatePixels()
- p5.Image/get(), p5.Image/getPixel(), p5.Image/getRegion()
- p5.Image/set(), p5.Image/setPixel(), p5.Image/setImage()
- p5.Image/resize()
- p5.Image/copy(), p5.Image/copyFrom()
- p5.Image/mask()
- p5.Image/filter()
- p5.Image/blend(), p5.Image/blendFrom()
- p5.Image/reset()
- p5.Image/getCurrentFrame()
- p5.Image/setFrame()
- p5.Image/numFrames()
- p5.Image/play()
- p5.Image/pause()
- p5.Image/delay(), p5.Image/delayAtIndex()
- loadImage(), loadImageWithCallbacks()
- image(), imageWithSize(), imageWithOptions()
- tint()
- noTint()
- imageMode()
- pixels
- blend(), blendFrom()
- copy(), copyFrom()
- filter()
- get(), getImage(), getPixel(), getRegion()
- loadPixels()
- updatePixels(), updatePixelRegion()
- set(), setPixel(), setImage()
Math
- abs()
- ceil()
- constrain()
- dist(), dist3D()
- exp()
- floor()
- lerp()
- log()
- mag()
- map(), mapBounded()
- max()
- min()
- norm()
- pow()
- round()
- sq()
- sqrt()
- fract()
- createVector(), createVector1D(), createVector2D(), createVector3D()
- p5.Vector/toString()
- p5.Vector/set(), p5.Vector/setFromValues(), p5.Vector.setFromVector()
- p5.Vector/copy()
- p5.Vector/add(), p5.Vector/addValues(), p5.Vector/addVector(), p5.Vector/addTo()
- p5.Vector/rem(), p5.Vector/remFromValues(), p5.Vector/remFromVector()
- p5.Vector/sub(), p5.Vector/subValues(), p5.Vector/subVector(), p5.Vector/subTo()
- p5.Vector/mult(), p5.Vector/multValues(), p5.Vector/multScalar(), p5.Vector/multVector(), p5.Vector/multTo(), p5.Vector/multScalarTo(), p5.Vector/multValuesTo()
- p5.Vector/div(), p5.Vector/divValues(), p5.Vector/divScalar(), p5.Vector/divVector(), p5.Vector/divTo(), p5.Vector/divScalarTo(), p5.Vector/divValuesTo()
- p5.Vector/mag()
- p5.Vector/magSq()
- p5.Vector/dot(), p5.Vector/dotVector()
- p5.Vector/cross()
- p5.Vector/dist()
- p5.Vector/normalize(), p5.Vector/normalizeTo
- p5.Vector/limit()
- p5.Vector/setMag(), p5.Vector/setMagTo()
- p5.Vector/heading()
- p5.Vector/setHeading()
- p5.Vector/rotate(), p5.Vector/rotateTo()
- p5.Vector/angleBetween()
- p5.Vector/lerp(), p5.Vector/lerpVector(), p5.Vector/lerpTo()
- p5.Vector/reflect(), p5.Vector/reflectTo()
- p5.Vector/array()
- p5.vector/equals(), p5.vector/equalsVector(), p5.vector/equalsValues()
- p5.Vector/fromAngle(), p5.Vector/fromAngleAndLength()
- p5.Vector/fromAngles(), p5.Vector/fromAnglesAndLength()
- p5.Vector/random2D()
- p5.Vector/random3D()
- noise(), noise2D(), noise3D()
- noiseDetail()
- noiseSeed()
- randomSeed()
- random(), randomBetween(), randomInRange(), randomMax(), randomChoice()
- randomGaussian(), randomGaussianFromMean(), randomGaussianFromMeanAndSd()
- acos(), Trig.acos()
- asin(), Trig.asin()
- atan(), Trig.atan()
- atan2(), Trig.atan2()
- cos(), Trig.cos()
- sin(), Trig.sin()
- tan(), Trig.tan()
- degrees()
- radians()
- angleMode(), setAngleMode(), getAngleMode()
Typography
- textAlign(), setTextAlign(), getTextAlign()
- textLeading(), setTextLeading(), getTextLeading()
- textSize(), setTextSize(), getTextSize()
- textStyle(), setTextStyle(), getTextStyle()
- textWidth()
- textAscent()
- textDescent()
- textWrap(), setTextWrap()
- loadFont(), loadFontWithCallbacks()
- text(), textBounded()
- textFont(), setTextFont(), setTextFontByName(), setTextFontWithSize(), setTextFontByNameWithSize()
- p5.Font/textBounds(), p5.Font/textBoundsWithSize(), p5.Font/textBoundsWithSizeAndAlign()
- p5.Font/textToPoints(), p5.Font/textToPointsWithOptions()
3D
- orbitControl(), orbitControlWithSensitivity()
- debugMode(), debugModeGrid(), debugModeAxes(), debugModeGridWithOptions(), debugModeAxesWithOptions(), debugModeAll()
- noDebugMode()
- ambientLight()
- specularColor()
- directionalLight(), directionalLightFromVector()
- pointLight(), pointLightFromVector()
- lights()
- lightFalloff()
- spotLight(), spotLightWithOptions()
- noLights()
- loadShader(), loadShaderWithCallbacks()
- shader()
- resetShader()
- texture()
- textureMode(), setTextureMode()
- textureWrap(), textureWrapXY(), setTextureWrap(), setTextureWrapXY()
- normalMaterial()
- ambientMaterial()
- emissiveMaterial()
- specularMaterial()
- shininess()
- p5.Shader/setUniform()
- camera()
- perspective(), perspectiveWithDefaults()
- ortho(), orthoWithDefaults()
- frustum(), frustumWithDefaults()
- createCamera()
- setCamera()
- p5.Camera/perspective()
- p5.Camera/ortho()
- p5.Camera/frustum()
- p5.Camera/pan()
- p5.Camera/tilt()
- p5.Camera/lookAt()
- p5.Camera/camera()
- p5.Camera/move()
- p5.Camera/setPosition()