Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save path #1

Open
tonycaso opened this issue Mar 10, 2016 · 3 comments
Open

save path #1

tonycaso opened this issue Mar 10, 2016 · 3 comments

Comments

@tonycaso
Copy link

Awesome plugin, thanks for developing it!

It would be great if it could be integrated completly with fabric, as after leaving drawing mode the painting dissapears. It has to be with creating svg path, hasn't it?

Very beatiful indeed.

@adsgm
Copy link

adsgm commented Mar 15, 2017

Same here, the InkBrush is just amazing, but when I try to save my canvas to PNG (with canvas.toDataURL) the drawing disappears.

Great work!

@elendee
Copy link

elendee commented Sep 3, 2017

agreed awesome plugin, learned a lot from it. any progress on this point though? I'm going to look into it over the next couple days. A little tricky as I imagine every "stroke of the brush" needs to be added as a locked fabric group. But it should be possible...

@elendee
Copy link

elendee commented Sep 7, 2017

well.. I did manage to get it working in a minimal way, but to draw all those shapes as fabric objects crashed my browser immediately. So, you can make your own custom brushes as fabric objects I think, but not THESE brushes exactly. If you want to experiment, look in "fabric-brush.js", copy out the brush you're interested in to a stand-alone script, and replace all instances of "ctx" with your fabric canvas, basically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants