Constructor for creating a Color object
The red component of the Color object
The green component of the Color object
The blue component of the Color object
The alpha component of the Color object
Static ReadonlyBLACKStatic ReadonlyBLUEStatic ReadonlyCYANStatic ReadonlyGREENStatic ReadonlyPURPLEStatic ReadonlyREDStatic ReadonlyWHITEStatic properties representing standard colors
Static ReadonlyYELLOWAdd another Color object to the current one
The Color object to add
Create a clone of the Color object
A new Color object that is an exact copy of the original
Copy the components of a given Color object
The Color object to copy
Divide the current Color object by another one
The Color object to divide by
Method that divides a Color object by a scalar
The scalar to divide the Color object by
Multiply the current Color object by another one
The Color object to multiply by
Multiply the current Color object by a scalar
The scalar to multiply by
Set the components of the Color object
The red component
The green component
The blue component
The alpha component (optional, defaults to 1)
Set the components of the Color object from a hex string
The hex string to convert to a Color object
Subtract another Color object from the current one
The Color object to subtract
StaticaddStaticcloneStaticcreateStatic method to create a Color object from a hex string
The hex string to convert to a Color object
A new Color object created from the given hex string
StaticdivideStaticdivideStaticlerpStaticmultiplyStaticmultiplyStaticsubtract
This class holds a color for computer graphics defined via four components (Red, Green, Blue, Alpha). Alpha is opacity (0.0 = completely transparent, 1.0 = completely opaque). All components range from 0.0 to 1.0 in floating point.