FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    tint_opacity_modifier

    function · ferroui-base · v0.5.0

    fn tint_opacity_modifier(tint_color: crate::media::Color) -> f64
    

    GetTintOpacityModifier: how much of the tint opacity a colour keeps. Pure white keeps 45 %, pure black 85 %, grey 90 %; the suppression grows linearly with the distance of the value from 50 % and shrinks as the saturation grows.

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.