PColorF Constructor

Overload List

PColorF(Color32) Initializes a new instance of the PColorF struct from a Color32 instance.
PColorF(Color64) Initializes a new instance of the PColorF struct from a Color64 instance.
PColorF(ColorF) Initializes a new instance of the PColorF struct from a ColorF instance.
PColorF(Single, Single, Single) Initializes a new instance of the PColorF 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 PColorF(Single, Single, Single, Boolean) constructor or the IsValid property for validation, or the Clip method to return a valid instance.
PColorF(Single, Single, Single, Boolean) Initializes a new instance of the PColorF struct from RGB (red, green, and blue) values.
PColorF(Single, Single, Single, Single) Initializes a new instance of the PColorF 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 PColorF(Single, Single, Single, Single, Boolean) constructor or the IsValid property for validation, or the Clip method to return a valid instance.
PColorF(Single, Single, Single, Single, Boolean) Initializes a new instance of the PColorF struct from ARGB (alpha, red, green, and blue) values.

See Also