docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ColorHsva

    A struct representing the hue, saturation, value, and alpha components of a particular color

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.Experimental.Perception.Randomization.Parameters
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct ColorHsva

    Constructors

    Name Description
    ColorHsva(float, float, float, float)

    Constructs an ColorHsva struct

    Fields

    Name Description
    a

    A float value representing the alpha component of a color

    h

    A float value representing the hue component of a color

    s

    A float value representing the saturation component of a color

    v

    A float value representing the value component of a color

    Methods

    Name Description
    ToString()

    Generates a string representation of a ColorHsva

    Operators

    Name Description
    explicit operator ColorHsva(Color)

    Converts an RGBA Color to an HSVA Color

    explicit operator Color(ColorHsva)

    Converts an HSVA Color to an RGBA Color

    implicit operator ColorHsva(float4)

    Implicitly converts an float4 to an HSVA color

    implicit operator float4(ColorHsva)

    Implicitly converts an HSVA Color to a float4

    implicit operator Vector4(ColorHsva)

    Implicitly converts an HSVA Color to a Vector4

    implicit operator ColorHsva(Vector4)

    Implicitly converts an Vector4 to an 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)