Workshop Overview
https://editor.p5js.org/
Things to try!
In the Smiley demo:
- Change some colors
- Make the face, eyes, and/or nose bigger
- Add some freckles
- Change the ORDER of some statements (What happens if the call to draw the face is last?!)
- Change the sizes/placement of the sample shapes at the bottom
In the Flower demo:
- Change only the
canvasSize
variables.
- Change the flower height or width
- Try adding a bee 1
flowerWidth
to the right of the top of the flower stem
- This is abstract art, the “bee” can be a simple circle or oval. ;)
- The top of the flower stem has variables for its X & Y coordinates:
stemTopX
and stemTopY
Implement the heart example
Design your own project!
Feel free to ask us for help at any point along the way!
Planning
- Sketch out your vision on graph paper
- Identify the major sub-shapes & colors
- Label with coordinates (or with the math you want the computer to do to figure out the coordinates)
Implementation
- Create a new p5.js sketch project
- Set the canvas size in
setup()
- Set the background color in
draw()
- Start writing the code to draw the shapes you need.