How To rotate a image on a different image center #1368
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2020-03-09 by @gfwilliams Nice - thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-03-09 by @MaBecker
This might be helpful if design own hour and minutes hands for a watch.
Having a green laser sword and want to rotate it on my Bangle.js around xm=120 and ym=120.
As the image center is not the center you like as center for your rotation it it necessary to add some corrections . The new center in this case is centerX/Y =121 which is a rotation on a circle xm=120, ym=120, r=21
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions