How to add a texture to a Konva.Image() object in Konvajs?
问题 I have followed the answer in this post; fill image with texture pattern, and it is working perfectly. Is there a way to do the same with KonvaJS? 回答1: AFAIK, KonvaJS does not yet support the compositing required to create your texture overlay. But a Konva.Image can take a native html5 canvas element as its image source, so just do your overlay on an html5 canvas element and then feed it to Konva: var textureImage = new Konva.Image({ image:myCanvasElement }) Example annotated code and a Demo: