RGBA255 Constructor

Constructor in RGBA255

Declaration

public RGBA255(int red, int green, int blue, int alpha)

Description

Creates new RGBA255 components from the given values.

Parameters

redThe red component of the color in the range [0..255].
greenThe green component of the color in the range [0..255].
blueThe blue component of the color in the range [0..255].
alphaThe alpha component of the color in the range [0..255].

Overload

Declaration

public RGBA255(RGBA255 other)

Description

Creates a new copy of the components.

Parameters

otherThe other components to copy.

Overload

Declaration

public RGBA255(Color color)

Description

Creates new RGBA255 components from the given color.

Parameters

colorThe color to extract the components from.