🚦Stop & Go & Review
14 Oct 2016Learning 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. ↩