Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created February 19, 2018 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benatkin/543751a6042174b65eb43fb11c5a0eb0 to your computer and use it in GitHub Desktop.
Save benatkin/543751a6042174b65eb43fb11c5a0eb0 to your computer and use it in GitHub Desktop.
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