Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
Sunday, March 27, 2011
HTML5 - Rotate
To make rotate transformation, use translate first, then rotate, then back to translate again:
ctx.translate(230,10)
ctx.rotate(45/57)
ctx.translate(-230,-10);
ctx.fillRect(230, 10, 100, 100)
1 comment:
Fly with Anne
April 22, 2022 at 11:05 AM
Hi thaanks for posting this
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
Hi thaanks for posting this
ReplyDelete