I'm using fabric.js and so far I'm pretty impressed with what it can do. However, even though it comes with some nice brushes, I really need some customized ones for my project.
After searching extensively for days, all I could find was this page: http://perfectionkills.com/exploring-canvas-drawing-techniques. It's a wonderful resource (especially the fur brush) that would definitely solve my problem... if only I could make it work in fabric.js.
But, as much as I've tried, I can't get it right - every time I try to edit the PencilBrush class in fabric.js' source I end up "breaking" it. The farther I could get was to make the image of the brush appear as I hold down the mouse (by messing with the _render function), but it doesn't affect the painting in any way and disappears as soon as I let it go. I also tried to edit the pattern brush, but I couldn't figure out how to replace fabric.js' shapes for images.
Can someone please (PLEASE!) tell me what to do, or at least point me in the right way? I'm completely lost here, and I think this would help many other people as well!
Thank you very much!