Search Results for

    Show / Hide Table of Contents

    Class ColorUtil

    Inheritance
    System.Object
    ColorUtil
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.Util
    Assembly: cs.temp.dll.dll
    Syntax
    public static class ColorUtil

    Methods

    Hsv2Rgb(Single, Single, Single, Single)

    HSV -> RGB変換

    Declaration
    public static Color Hsv2Rgb(float h, float s, float v, float alpha = 1F)
    Parameters
    Type Name Description
    System.Single h

    色相. 0 ~ 360

    System.Single s

    彩度. 0 ~ 255

    System.Single v

    明度. 0 ~ 255

    System.Single alpha

    0 ~ 255

    Returns
    Type Description
    Color

    PutA(Color, Single)

    a値を設定した値を返す(非破壊)

    Declaration
    public static Color PutA(this Color self, float a)
    Parameters
    Type Name Description
    Color self
    System.Single a
    Returns
    Type Description
    Color

    PutB(Color, Single)

    b値を設定した値を返す(非破壊)

    Declaration
    public static Color PutB(this Color self, float b)
    Parameters
    Type Name Description
    Color self
    System.Single b
    Returns
    Type Description
    Color

    PutG(Color, Single)

    g値を設定した値を返す(非破壊)

    Declaration
    public static Color PutG(this Color self, float g)
    Parameters
    Type Name Description
    Color self
    System.Single g
    Returns
    Type Description
    Color

    PutR(Color, Single)

    r値を設定した値を返す(非破壊)

    Declaration
    public static Color PutR(this Color self, float r)
    Parameters
    Type Name Description
    Color self
    System.Single r
    Returns
    Type Description
    Color

    ToColor(Color32)

    Color32->Color変換

    Declaration
    public static Color ToColor(this Color32 self)
    Parameters
    Type Name Description
    Color32 self
    Returns
    Type Description
    Color
    In This Article
    Back to top PLATEAU SDK for Unity