Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 474 Bytes

title: HTML5 Canvas Mask Image Filter Tutorial

To apply filter to an Konva.Image, we have to cache it first with cache() function. Then apply filter with filter() function.

To mark the colors of an image with Konva, we can use the Konva.Filters.Mask filter.

For all available filters go to Filters Documentation.

{% iframe /downloads/code/filters/Mask.html %}

{% include_code Konva Mask Image Demo filters/Mask.html %}

You can’t perform that action at this time.