سؤال

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

هل كانت مفيدة؟

المحلول

Luminance masks are a new feature of the as yet unfinished SVG 2 specification. They have been implemented in nightly Firefox and Webkit. If you are using a Nightly or Aurora Firefox make sure layout.css.masking.enabled is set to true in about:config

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top