ColorF Constructor

Overload List

ColorF(Color32) Initializes a new instance of the ColorF struct from a Color32 instance.
ColorF(Color64) Initializes a new instance of the ColorF struct from a Color64 instance.
ColorF(Single, Single, Single) Initializes a new instance of the ColorF struct from RGB (red, green, and blue) values. For performance reasons this overload does not validate if the color components are between 0 and 1, but you can use the ColorF(Single, Single, Single, Boolean) constructor or the IsValid property for validation, or the Clip method to return a valid instance.
ColorF(Single, Single, Single, Boolean) Initializes a new instance of the ColorF struct from RGB (red, green, and blue) values.
ColorF(Single, Single, Single, Single) Initializes a new instance of the ColorF struct from ARGB (alpha, red, green, and blue) values. For performance reasons this overload does not validate if the color components are between 0 and 1, but you can use the ColorF(Single, Single, Single, Single, Boolean) constructor or the IsValid property for validation, or the Clip method to return a valid instance.
ColorF(Single, Single, Single, Single, Boolean) Initializes a new instance of the ColorF struct from ARGB (alpha, red, green, and blue) values.

See Also