docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method HueShift

    HueShift(Color, float)

    Shift the hue of a color by a given amount.

    Declaration
    public static Color HueShift(Color color, float shift)
    Parameters
    Type Name Description
    Color color

    The input color.

    float shift

    The amount of shift.

    Returns
    Type Description
    Color

    The output color.

    Remarks

    The hue value wraps around to 0 if the shifted hue exceeds 1.0.

    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)