Do You Want to Build a ⛄
Unit 1 – Algorithms and p5 | September 22Do Now
✱ Create a canvas that is 500px wide and 500px tall.
✱ Draw an ellipse()
inside of another ellipse.
✱ Give each ellipse()
a different color.
Do you wanna build a snowman?
It doesn’t have to be a snowman…
function setup(){
createCanvas(500,500)
}
Use the p5 graph paper to plan your snowman1.
Helpful Drawing Hint
If you add this code to your sketches, you’ll be able to see where your mouse is on the screen…very helpful for drawing!
background('white')
textSize(10)
text('Mouse X = ' + mouseX + " | Mouse Y = " + mouseY, 10, 10)
Meeting Standards
- At least 3
ellipse()
, correctly layered so that it looks like one is resting on top of the other. - At least two
line()
for the arms - What shape do you think I used to make the nose? Use
p5✱ Reference
to figure out how to make this shape.
Push yourself for a 4!
- Use
fill()
andstroke()
to give your snowman some color.
-
It doesn’t have to be a snowman. ↩