Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, we will cover:
Translating the canvas context
Rotating the canvas context
Scaling the canvas context
Creating a mirror transform
Creating custom transforms
Shearing the canvas context
Handling multiple transforms with the state stack
Transforming a circle into an oval
Rotating an image
Drawing a simple logo and randomizing its position, rotation, and scale