This Seems Simple, No?
Learn to draw multiple shapes on the HTML5 canvas and understand the challenges of combining them. This lesson helps you explore how separate or merged stroke and fill calls affect rendering, enabling you to manage canvas drawing more effectively.
We'll cover the following...
We'll cover the following...
Earlier, we looked at an example where we drew a simple four-sided shape. The canvas code for that looked as follows:
Now, let's say that we want to add another shape to what we have here. The shape we want looks something like this:
In code, it is represented as follows:
What do you think we ...