Created
February 19, 2018 09:30
-
-
Save benatkin/c241b3da8a21c0289cc4e9468fed07e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const curve = (start, control1, control2, end) => { | |
return [ | |
"M", | |
start.join(" "), | |
"C", | |
control1.join(" "), | |
control2.join(" "), | |
end.join(" ") | |
].join(" "); | |
} | |
const line = (start, end) => { | |
return ["M", start.join(" "), "L", end.join(" ")].join(" "); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment