How they did it
The pie clock involves a little sleight of hand. Here are the pieces that make up the clock:
![How they did it](/api/v2/epubs/9781849691840/files/graphics/1840_07_17.jpg)
It's a bit like a sandwich. We start by drawing the blue background. Then, we layer on the two yellow half-moon pieces. To make the clock look pretty, we apply the lovely, shiny gloss picture in front of all these pieces.
![How they did it](/api/v2/epubs/9781849691840/files/graphics/1840_07_18.jpg)
We rotate the right half-moon piece halfway around the circle to make the slice of yellow time appear to grow smaller and smaller.
At the halfway point, we slap a half-moon section of the blue background on top of everything, ...
Get Unity 3.x Game Development by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.