javascript - How to make custom brushes for fabric.js? -
i'm using fabric.js , far i'm pretty impressed can do. however, though comes nice brushes, need customized ones project.
after searching extensively days, find page: http://perfectionkills.com/exploring-canvas-drawing-techniques. it's wonderful resource (especially fur brush) solve problem... if make work in fabric.js.
but, as i've tried, can't right - every time try edit pencilbrush class in fabric.js' source end "breaking" it. farther make image of brush appear hold down mouse (by messing _render function), doesn't affect painting in way , disappears let go. tried edit pattern brush, couldn't figure out how replace fabric.js' shapes images.
can please (please!) tell me do, or @ least point me in right way? i'm lost here, , think many other people well!
thank much!
Comments
Post a Comment