clearRect()
will make the space
transparent. So, if the background does
not have a colour of its own, you wouldn't
see the effects of clearRect
.
Here's an example:
This is why, for now, ensure that you
have a rectangular space from which
you remove smaller rectangular spaces.
Later, we'll see more uses for
clearRect()
.