Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const symmetricalCurvePoints = ({ controlX, endpointX, endpointDistance, controlDistance}) => (
[
[endpointX, 50 - endpointDistance / 2],
[controlX, 50 - controlDistance / 2],
[controlX, 50 + controlDistance / 2],
[endpointX, 50 + endpointDistance / 2]
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment