ToHsl(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)
- C#
- VB
- F#
public static HslColor ToHsl(
byte red,
byte green,
byte blue,
byte alpha = 255
)
Public Shared Function ToHsl (
red As Byte,
green As Byte,
blue As Byte,
Optional alpha As Byte = 255
) As HslColor
static member ToHsl :
red : byte *
green : byte *
blue : byte *
?alpha : byte
(* Defaults:
let _alpha = defaultArg alpha 255
*)
-> HslColor
Parameters
- Byte
- The Red component in the RGB color model.
- Byte
- The Green component in the RGB color model.
- Byte
- The Blue component in the RGB color model.
- Byte (Optional)
- The Alpha component.
Return Value
HslColor
A new HslColor equivalent to the given RGBA values.