Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. Mastering Transformations

Chapter 4. Mastering Transformations

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


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial