Has anyone here have done clipping an image within an image? I've seen so far about clipping on the canvas but are all regular shapes(rectangle, circle, etc...). It would be nice if some have actually done it.
P.S. with fabric.js or just the regular canvas.
Sure, you can use compositing to draw a second image only where the first image exists:
Illustration: House image drawn first and second Grass image is drawn only where house pixels exist:
Example code an a Demo: http://jsfiddle.net/m1erickson/r71d8d8b/