HTML and CSS Reference
In-Depth Information
As you can see, if we adjust the shadowOffset values along with the shadowBlur value,
we create various shadows. We can also create shadows for complex shapes drawn
with paths and arcs.
What's Next
We covered a lot of ground in this chapter, introducing the ways to construct primitive
and complex shapes, and how we can draw and transform them on the canvas. We
also discussed how to composite, rotate, scale, translate, fill, and create shadows on
these shapes. But we've only just begun exploring HTML5 Canvas. In the next chapter,
we will look at how to create and manipulate text objects on the canvas.
Search WWH ::




Custom Search