docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Luminance

    Luminance(in Color)

    Returns the luminance of the specified color. The input is considered to be in linear space with sRGB primaries and a D65 white point.

    Declaration
    public static float Luminance(in Color color)
    Parameters
    Type Name Description
    Color color

    The color to compute the luminance for.

    Returns
    Type Description
    float

    A luminance value.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)