Chapter 10. Transforms

In Chapter 9, you saw how to use animations to move objects around the screen, change their size or color or opacity, and even move the dots in a dotted line. But certain types of animations were missing. What if you want to use an animation to rotate a button when the button is clicked? And I don’t necessarily mean to make the button spin around crazy, but maybe just jiggle a little as if the button is saying, “I simply can’t restrain my enthusiasm to be carrying out the command you desire.”

What you need for this job (and others like it) are transforms. Back in the old days, transforms were called graphics transforms or even—perhaps to scare away the uninitiated—matrix transforms. But in recent years transforms have been ...

Get Programming Windows®, Six Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.