How can I use SVG Masks to make a Luma Mask?

267 Views Asked by At

I want to make a Luma-Mask (Matte) in SVG. In other words I want to mask a layer to the luminance channel (acquired from the RGB channels) of a different layer.

How can this be done?

Thanks

1

There are 1 best solutions below

1
On BEST ANSWER

Luminance masks are a new feature of the SVG 2 specification. They have been implemented in Firefox and Webkit.