Getting Started with the HTML5 Canvas — Part 3

Adding Color to a Drawing

Photo by Anas Alshanti on Unsplash

This article is part 3 of my series on the HTML5 canvas. In part 1, I introduced you to the HTML5 canvas element and showed you how to make your first drawing. In part 2, we looked at adding simple shapes to a drawing to create an image. In today’s article, I will show you how to add color to drawings.