ColorHelpers.RgbToHsl method

Version 1.0.2
.NET Framework 4.7
Namespace Skybrud.Colors
Assembly Skybrud.Colors.dll

RgbToHsl(Byte, Byte, Byte, out double, out double, out double)

Static

Converts a RGB color to an HSL color.

public static Void RgbToHsl(Byte red, Byte green, Byte blue, double hue, double saturation, double lightness)

Parameters

red Byte

The amount of red in the RGB color.

green Byte

The amount of green in the RGB color.

blue Byte

The amount of blue in the RGB color.

hue Double

The amount of hue in the HSL color.

saturation Double

The amount of saturation in the HSL color.

lightness Double

The amount of lightness in the HSL color.

Returns