Konva - masked image

Konva - masked image

VanquishedWombat

So you need to make an image mask. That means making a shape and drawing the image into that shape so that the area of the image outside the shape is cut off. But you can't use a path so clipping is off the menu. How to get the mask with composition operations or fill pattern image...

Konva Mask Image Tricks
Members only
Konva - composing  & blend modes

Konva - composing & blend modes

VanquishedWombat

The HTML5 canvas has the globalCompositeOperation feature which lets us control how new content being drawn onto the canvas will play with the content that is already there. Konva's API lets us apply it to our shapes. I was curious to visualize and understand what it does..

Konva Composing ClipFunc Image
Paid-members only