Learn Create Your Own Split Screen

Next Page

To draw an outline of a circle, we've been using stroke.

To change the colour of the outline, we set the strokeStyle.

To draw a filled circle, we use fill instead of stroke.

And to change the colour of the filled circle, we set the fillStyle.


Challenge: Try making the filled circle blue, and make the lineWidth of the red circle 20.