We're going to use a type of colorMode called HSB Mode.
Move the sliders and note the color values:
If the block goes out of the screen, it's speed flips to negative.
We'll get the hue to reset when it gets to 100 later- can you think of how we might do that?
- Try increasing or decreasing the size over time
- Make the speed increase or decrease
- Make it an ellipse
- Add another block
Here is what it looks like if you draw a second
rect() with the x and y's reversed:
rect(block.x, block.y, block.w, block.h
rect(block.y, block.x, block.w, block.h