Calculate an angle based on 2 coordinates (x, y)
NOTE! This implementation is not strictly equal to what Figma outputs in their CSS inspection panel
https://9elements.com/blog/gradient-angles-in-css/
https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient#Composition_of_a_linear_gradient
Overall implementation based on this work:
https://gist.github.com/conorbuck/2606166
Generated using TypeDoc
Calculate an angle based on 2 coordinates (x, y)
NOTE! This implementation is not strictly equal to what Figma outputs in their CSS inspection panel
https://9elements.com/blog/gradient-angles-in-css/
https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient#Composition_of_a_linear_gradient
Overall implementation based on this work:
https://gist.github.com/conorbuck/2606166