How do I rotate a single object on an html 5 canvas?
Posted
by Kappers
on Stack Overflow
See other posts from Stack Overflow
or by Kappers
Published on 2010-04-20T18:35:23Z
Indexed on
2010/04/20
18:53 UTC
Read the original article
Hit count: 176
I'm trying to figure out how to rotate a single object on an html 5 canvas.
For example: http://screencast.com/t/NTQ5M2E3Mzct - I want each one of those cards to be rotated at a different degree.
So far, all I've seen are articles and examples that demonstrate ways to rotate the entire canvas. Right now, I'm guessing I'll have to rotate the canvas, draw an image, and then rotate the canvas back to it's original position before drawing the second image. If that's the case, then just let me know! I just have a feeling that there's another way.
Anyone have any idea?
Thanks in advance!
© Stack Overflow or respective owner