RGBA Constructor
Constructor in RGBA
Declaration
public RGBA(float red, float green, float blue, float alpha)
Description
Creates new RGBA components from the given values.
Parameters
red | The red component of the color in the range [0..1]. |
green | The green component of the color in the range [0..1]. |
blue | The blue component of the color in the range [0..1]. |
alpha | The alpha component of the color in the range [0..1]. |
Overload
Declaration
public RGBA(RGBA other)
Description
Creates a new copy of the components.
Parameters
other | The other components to copy. |
Overload
Declaration
public RGBA(Color color)
Description
Creates new RGBA components from the given color.
Parameters
color | The color to extract the components from. |