Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query about the Derivation of RATIO and Constants in radiusFromC Function #1

Open
swami-laxman opened this issue Nov 1, 2023 · 0 comments

Comments

@swami-laxman
Copy link

Hi @scotato First of all thankyou for making this very useful extension.
I was trying to replicate same algo in swifui and I have some questions in mind.

Could you please provide some insight into how the RATIO was calculated and the reasoning behind the specific values chosen for the switch statement in the radiusFromC function in below code?
https://github.com/scotato/figma-squircle/blob/main/src/squircle.ts

Any mathematical references or design principles that influenced these choices would be greatly appreciated.

Thank you for your time and for sharing your work with the community. I look forward to understanding more about the intricacies of your squircle path calculations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant