Development Checklist
dhowe edited this page
·
38 revisions
Pages 36
- Home
- Archived Content
- Beyond the canvas
- Code of Conduct
- Contributed Tools, Projects, Demos
- Design Principles
- Development
- Development Checklist
- Development – extended
- DOM notes
- Education
- Embedding p5.js
- Frequently Asked Questions
- Friendly Debugger
- Getting Started
- Getting started with WebGL in p5
- Inline documentation
- Instantiation Cases
- Integrating other libraries
- Intro to DOM manipulation and events
- Intro to HTML and CSS
- Issue Labels
- JavaScript basics
- Libraries
- Loading external files: AJAX, XML, JSON
- Local server
- p5.js Contributors Conference at CMU
- p5.js overview
- p5.js, node.js, socket.io
- Positioning your canvas
- Preparing a pull request
- Processing transition
- Reference
- Release steps
- SimpleHTTPServer
- Supported browsers
- Show 21 more pages…
Clone this wiki locally
Example code, sketches, and snippets working as of version 0.3.9. Examples and features that are completed have been crossed out. An asterisk (*) denotes that the example is not working for the version listed above.
This list is simply being provided as an easy way to see what example/tutorial code has already been created and what still needs being created.
See the development page for more details on how to contribute.
Features
- PDF Support #373
- Read local files #370
Incorporate WebGL #321- Implement preload() #317
Implement PFont #60- Implement File I/O #40
- Implement PShape #37
- Implement Curves #25
Webgl
- Implement bezierVertex() and curveVertex() methods
- Implement text() #1177
- line drawing with variable strokeWeight
- implement wireframe primitives (noFill() / stroke()) #1093
Reference Sketches
Color - Creating & Reading
alpha()blue()brightness()color()green()hue()lerpColor()red()saturation()
Color - Setting
background()clear()colorMode()fill()noFill()noStroke()stroke()
Constants
HALF_PIPIQUARTER_PITAUTWO_PI
Data - Array Functions
append()arrayCopy()concat()reverse()shorten()sort()splice()subset()
Data - Conversion
float()int()
Data - String Functions
join()match()matchAll()nf()nfc()nfp()nfs()split()splitTokens()trim()
Data - Table
- p5.Table
- p5.TableRow
Data - Output
save()
DOM
- p5.Element
parent()- id()
- class()
mousePressed()mouseWheel()mouseReleased()mouseClicked()mouseMoved()mouseOver()mouseOut()addClass()- removeClass()
child()html()position()style()attribute()value()show()hide()size()remove()
Environment
frameCountfocusedcursor()frameRate()noCursor()displayWidthdisplayHeightwindowWidthwindowHeightwindowResizedwidthheightfullscreen()
Image
createImage()- p5.Image
loadPixels()updatePixels()get()set()resize()copy()mask()filter()- blend()
save()
Image - Loading & Displaying
loadImage()image()tint()noTint()imageMode()
Image - Pixels
pixels[]blend()copy()filter()get()loadPixels()set()updatePixels()
Input - Files
loadJSON()loadStrings()loadTable()- loadXML()
Input - Keyboard
keyIsPressedkeykeyCodekeyPressed()keyReleased()keyTyped()
Input - Mouse
mouseXmouseYpmouseXpmouseYwinMouseXwinMouseYpwinMouseXpwinMouseYmouseButtonmouseIsPressedmouseMoved()mouseDragged()mousePressed()mouseReleased()mouseClicked()mouseWheel()
Input - Time & Date
day()hour()minute()millis()month()second()year()
Input - Touch
- touchX
- touchY
- ptouchX
- ptouchY
- touches[]
touchStarted()touchMoved()touchEnded()
Math
createVector()-
p5.Vectorset()add()sub()mult()div()mag()magSq()dot()cross()dist()normalize()limit()setMag()heading()rotate()lerp()array()equals()fromAngle()random2D()random3D()
Math - Calculation
abs()ceil()constrain()dist()exp()floor()lerp()log()mag()map()max()min()norm()pow()sq()sqrt()
Math - Noise
noise()noiseDetail()noiseSeed()
Math - Trigonometry
acos()asin()atan()atan2()cos()sin()tan()degrees()radians()angleMode()
Math - Random
randomSeed()random()randomGaussian()
Output - Text Area
print()
Rendering
createCanvas()noCanvas()createGraphics()blendMode()
Shape - 2D Primatives
arc()ellipse()line()point()quad()rect()triangle()
Shape - Attributes
ellipseMode()noSmooth()rectMode()smooth()strokeCap()strokeJoin()strokeWeight()
Shape - Curves
bezier()bezierDetail()bezierPoint()bezierTangent()curve()curveDetail()curvePoint()curveTangent()
Shape - Vertex
beginContour()beginShape()bezierVertex()curveVertex()endContour()endShape()quadraticVertex()vertex()
Structure
preload()setup()draw()remove()noLoop()loop()push()pop()redraw()
Transform
- applyMatrix()
- resetMatrix()
rotate()scale()shearX()shearY()translate()
Typography - Attributes
textAlign()- textLeading() *
textSize()textStyle()textWidth()
Typography - Loading & Displaying
text()textFont()
Tutorial Sketches
Structure
CoordinatesWidth/HeightSetup/DrawNo LoopLoop
Form
Points/LinesShape PrimitivesPie ChartRegular PolygonStarTriangle StripBezier
Data
VariablesTrue/FalseVariable Scope
Arrays
ArrayArray 2DArray Objects
Control
IterationEmbedded IterationConditionals 1Conditionals 2Logical Operators
Image
Load/Display ImageBackground ImageTransparencyAlpha MaskCreate ImagePointillism
Color
HueSaturationBrightnessColor VariablesRelativityLinear GradientRadial Gradient
Math
Increment DecrementOperator PrecedenceDistance 1DDistance 2DSineSine CosineSine WaveAdditive WavePolarToCartesianDouble RandomRandomNoise1DNoise Wave
Simulate
ForcesParticle SystemFlockingWolfram CAGame of Life
Objects
ObjectsMultiple ObjectsArray of ObjectsObjects 2
Instance Mode
Instantiation
DOM
Input/ButtonSliderModifying the DOMVideoVideo CanvasVideo PixelsVideo Capture
Sound
Load/Play SoundPreload SoundFilesoundFormatsPlay ModePan SoundSound EffectPlayback RateAmplitude AnalysisNoise Drum EnvelopeNote EnvelopeAmplitude (Volume)Oscillator FrequencyMic InputFrequency SpectrumMic ThresholdFilter LowPassFilter BandPassDelayReverbConvolution ReverbRecord Save AudioFrequency ModulationAmplitude Modulation
Hello P5
Simple ShapesInteractivity 1Interactivity 2AnimationFlockingWeatherDrawingSong