Using rectMode(CENTER) makes it harder to find out if the mouse is inside a square. If we use rectMode(CORNERS) the program becomes much simpler because we don't need to calculate the position of the four walls of our rectangle: we already know them.
In this episode we also see a small example of how we can generate colors that have the same hue but a different brightness or saturation.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…