6

draw SVG path on canvas

 1 year ago
source link: https://gist.github.com/shamansir/6294f8cfdd555a9d1b9e182007dd0c2f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

draw SVG path on canvas · GitHub

Instantly share code, notes, and snippets.

draw SVG path on canvas

if (command.marker === 'L') {
lastPos = [ command.values[0], lastPos[1] ]; => lastPos[1] ? => it should be: command.values[0]
ctx.lineTo(lastPos[0], lastPos[1]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK