[]
        
(Showing Draft Content)

C1.WPF.C1HslColor.-ctor

C1HslColor Constructor

C1HslColor(float, float, float)

Initializes a new instance of the C1HslColor struct.

Declaration
public C1HslColor(float h, float s, float l)
Parameters
Type Name Description
float h

Hue is a value between 0 and 1.

float s

Saturation is a value between 0 and 1.

float l

Luminance is a value between 0 and 1.

C1HslColor(byte, float, float, float)

Initializes a new instance of the C1HslColor struct.

Declaration
public C1HslColor(byte a, float h, float s, float l)
Parameters
Type Name Description
byte a

Alpha channel.

float h

Hue is a value between 0 and 1.

float s

Saturation is a value between 0 and 1.

float l

Luminance is a value between 0 and 1.

C1HslColor(Color)

Initializes a new instance of the C1HslColor struct.

Declaration
public C1HslColor(Color rgbColor)
Parameters
Type Name Description
Color rgbColor

RGB color used to initialize the HSL color.