RGB Constructor

Constructor in RGB

Declaration

public RGB(float red, float green, float blue)

Description

Creates new RGB components from the given values.

Parameters

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

Overload

Declaration

public RGB(RGB other)

Description

Creates a new copy of the components.

Parameters

otherThe other components to copy.

Overload

Declaration

public RGB(Color color)

Description

Creates new RGB components from the given color.

Parameters

colorThe color to extract the components from.