Building a clock with RaphaelJS
Hands down this is my favorite sample in this chapter. It's based on a mix of two samples on Raphael's website (I strongly encourage you to explore it). Although Raphael
isn't a graphing library, it's a really powerful animation and drawing library that is really worth playing with.
In this recipe, we will create a clock that is creative (I think). I planned to play with this library for a day or two, and ended up playing with it all weekend as I was just having so much fun. I ended up with a digit morphing clock (based on a sample that Raphael created on his site for letter morphing) and incorporated some arcing into it based on the polar clock example on his site. Let's see it in action:
Getting ready
As always in this chapter, you need the original library of Raphael. I've added it into our project. So just download the files and let's get rolling.
To grab the original library, visit our external source files hub for this chapter at http://blog.everythingfla...