VanquishedWombat
95 posts

VanquishedWombat

Konva - making a rectangle with a hole

Konva - making a rectangle with a hole

VanquishedWombat

Konva's clipFunc is usually used to trim off the edges of oversize images. The magic here is that if we draw an outer path clockwise and an inner path counter-clockwise, the area defined by the inner path becomes a hole! Let's look into it...

Konva Tricks