docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator explicit operator

    explicit operator Color(ColorHsva)

    Converts an HSVA Color to an RGBA Color

    Declaration
    public static explicit operator Color(ColorHsva c)
    Parameters
    Type Name Description
    ColorHsva c

    The HSVA color to convert to RGBA

    Returns
    Type Description
    Color

    A new RGBA color

    explicit operator ColorHsva(Color)

    Converts an RGBA Color to an HSVA Color

    Declaration
    public static explicit operator ColorHsva(Color c)
    Parameters
    Type Name Description
    Color c

    The RGBA color to convert to HSVA

    Returns
    Type Description
    ColorHsva

    A new HSVA color

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