How to create custom brush paint with fabric.js?
问题 I have been trying to create a custom brush paint with an image file using fabric JS . I have tried using the fabric.PatternBrush but this is not the exact thing that I was looking for because this creates a background pattern kind of paint and what I am trying to do is repeat the image wherever the mouse is dragged. Can anyone please direct me towards the right way? It will be fine for me to switch to any other drawing library that does what I am looking for. 回答1: I found a solution to this