To apply filter to an Konva.Image
, we have to cache it first with cache()
function. Then apply filter with filters()
function.
To change rgb components of an image with Konva, we can use the `Konva.Filters.RGB.
Instructions: Slide the controls to change rgb values.
For all available filters go to Filters Documentation.
{% iframe /downloads/code/filters/RGB.html %}
{% include_code Konva RGB Image Demo filters/RGB.html %}