Class HSVColor | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class HSVColor

    Inheritance
    System.Object
    HSVColor
    Namespace: Unity.UIWidgets.painting
    Syntax
    public class HSVColor

    Fields

    alpha

    Declaration
    public readonly float alpha
    Field Value
    Type Description
    System.Single

    hue

    Declaration
    public readonly float hue
    Field Value
    Type Description
    System.Single

    saturation

    Declaration
    public readonly float saturation
    Field Value
    Type Description
    System.Single

    value

    Declaration
    public readonly float value
    Field Value
    Type Description
    System.Single

    Methods

    fromAHSV(Single, Single, Single, Single)

    Declaration
    public static HSVColor fromAHSV(float alpha, float hue, float saturation, float value)
    Parameters
    Type Name Description
    System.Single alpha
    System.Single hue
    System.Single saturation
    System.Single value
    Returns
    Type Description
    HSVColor

    toColor()

    Declaration
    public Color toColor()
    Returns
    Type Description
    Color

    withAlpha(Single)

    Declaration
    public HSVColor withAlpha(float alpha)
    Parameters
    Type Name Description
    System.Single alpha
    Returns
    Type Description
    HSVColor

    withHue(Single)

    Declaration
    public HSVColor withHue(float hue)
    Parameters
    Type Name Description
    System.Single hue
    Returns
    Type Description
    HSVColor

    withSaturation(Single)

    Declaration
    public HSVColor withSaturation(float saturation)
    Parameters
    Type Name Description
    System.Single saturation
    Returns
    Type Description
    HSVColor

    withValue(Single)

    Declaration
    public HSVColor withValue(float value)
    Parameters
    Type Name Description
    System.Single value
    Returns
    Type Description
    HSVColor
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023