Konva - Flipping an image in-place

Konva - Flipping an image in-place

VanquishedWombat

It's easy to find out that to flip an image we can set the scaleX or Y to -1. But there's a problem here because images are based on the rect and have their origin at (0, 0). To make a proper in-place flip we have a little more work to do. Lets take a look...

Konva Tricks
Members only