π¦Stop & Go & Review
Unit 1 β Algorithms and p5 | October 14Learning Targets
- I can use Boolean conditions to determine which of parts of an algorithm is used.
- I can repeat of part of an algorithm until a condition is met or for a specified number of times.
Do Now (in Google Classroom)
Why isnβt the ellipse bouncing off the right edge of the screen? Can you fix it?
Can you make the stroke weight change as the ellipse moves?
Traffic Light
Create this βtraffic lightβ in p5:
Rubric
Specification | Points |
---|---|
3 ellipses, each light up different colors | 3 |
It must be able to βlightβ up in three different colors one at a time | 1 |
Only one light should be lit at a time | 1 |
Lights are conditionally activated1 | 1 |
Total | 6 |
-
Itβs your choice how to activate the lights. Mine are based off
mouseY
. You could use a click,mouseX
, your keyboardβ¦whatever you want. ↩