Learn Create Your Own Split Screen

Next Page

Once you set a fillStyle, everything you draw from that point on is filled with that style, until you change the style.

Look at the example and notice how once we set a fillStyle, it stays in effect until we change it.


If you haven't set a fillStyle, the default is black.

Try making one of the green lines blue.