backdrop_grayscale

Function backdrop_grayscale 

Source
pub fn backdrop_grayscale(
    child: impl IntoUiNode,
    amount: impl IntoVar<Factor>,
) -> UiNode
Expand description

P Grayscale tone everything behind the widget.

Zero is the original colors, one if the full grayscale.

This property is a shorthand way of setting backdrop_filter to Filter::new_grayscale using variable mapping.