ColorToHsl(Byte, Byte, Byte, Byte) Method

Converts the given RGBA color component values to their HSL color equivalent.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static HslColor ToHsl(
	byte red,
	byte green,
	byte blue,
	byte alpha = 255
)

Parameters

red  Byte
The Red component in the RGB color model.
green  Byte
The Green component in the RGB color model.
blue  Byte
The Blue component in the RGB color model.
alpha  Byte  (Optional)
The Alpha component.

Return Value

HslColor
A new HslColor equivalent to the given RGBA values.

See Also