πΎ + π½ + π€ = Review
Unit 1 β Algorithms and p5 | September 23Do Now
You know how to create a circle (ellipse()
), and you know how to create a rectangle (rect()
). How could you combine these two shapes to draw a semicircle?
Like this:
Design your own character
Using the p5 graph paper, design your own characterβ either an alien π½/πΎ or a robot π€.
Meeting Standards
-
Planning graph paper indicates accurate pixel measurements.
-
Code corresponds to planning graph paper.
-
Code each of the following commands:
β± rect()
β± line()
β± ellipse()
β± fill()
β± stroke()
β± strokeWeight()
Push yourself for a 4!
Display the mouseX
and mouseY
on the screen while drawing:
// This goes at the top of your code
background('white')
textSize(10)
text('Mouse X = ' + mouseX + " | Mouse Y = " + mouseY, 10, 10)