Change angle reference axis of canvas #2441
Unanswered
JatinBhuva
asked this question in
Q&A
Replies: 1 comment
-
I'm not sure if this helps but I have a tutorial on trigonometry:
https://www.youtube.com/watch?v=-lF7sSTelOg
…On Thu, May 23, 2024 at 6:11 AM JatinBhuva ***@***.***> wrote:
Screenshot.2024-05-23.at.9.27.55.AM.png (view on web)
<https://github.com/Shopify/react-native-skia/assets/70341139/80835b0d-13cc-43c5-ba98-2502ab1a17f0>
See in normal canvas(default) angle if we have 0 deg angle then the line
rests on the x-axis and the angle starts anti-clockwise.
But I want to start the angle from the y-axis and it should move the
clockwise.
what I want to achieve Is below,
currently 0deg so the circle place is as given below image(blue ball) and
as soon I increase the angle it moves anticlockwise
but what I want is if the angle is 0 then it(blue ball) should be at the
top centre at red ring position. and if the angle increases it should move
from there clockwise.
Screenshot.2024-05-23.at.9.37.32.AM.png (view on web)
<https://github.com/Shopify/react-native-skia/assets/70341139/66286376-7fcd-4768-abe5-193ab3720350>
—
Reply to this email directly, view it on GitHub
<#2441>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVUM4CC4YSKCIX3F5Y3ZDVT7JAVCNFSM6AAAAABIE2PU4WVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWG4YTKNBXGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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
-
See in normal canvas(default) angle if we have 0 deg angle then the line rests on the x-axis and the angle starts anti-clockwise.
But I want to start the angle from the y-axis and it should move the clockwise.
what I want to achieve Is below,
currently 0deg so the circle place is as given below image(blue ball) and as soon I increase the angle it moves anticlockwise
but what I want is if the angle is 0 then it(blue ball) should be at the top centre at red ring position. and if the angle increases it should move from there clockwise.
I'm giving coordinates to circle(blue) as below
Beta Was this translation helpful? Give feedback.
All reactions