-
Notifications
You must be signed in to change notification settings - Fork 53
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
Draw brush strokes on lower-canvas? #4
Comments
agree |
Anyone figure this out? |
not me. i just used the default drawing functions from fabric itself. while using textures to mimic the strokes (at least the crayon) on this addon |
@fariskas Would you be willing to share your code for the crayon? |
@sops21 sorry for the late reply. but here's what a gist of the code. |
@fariskas Thanks for sharing that! One of the devs for fabric.js also posted this possible solution. Its kinda hacky, but it works. I'm going to test performance on it later today: https://stackoverflow.com/questions/52885498/fabric-js-and-fabric-brush-cant-add-to-lower-canvas/ |
@sops21 cool! let me know how that goes. might have to relook into using this if its goes well |
I noticed that the brush strokes are drawn on the upper canvas. Thus making it impossible to layer with other items on the lower canvas.
The default fabric.js drawing brush draws on the lower canvas too.
Also, is it possible to select and move the strokes once they are drawn? Similar to how the default fabric.js brush works
The text was updated successfully, but these errors were encountered: