svgalphamaskblendcompositing

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


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


Solution

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