Table of Contents

Method RgbToHsl

Namespace
DocWright.Core.Primitives
Assembly
DocWright.Core.dll

RgbToHsl(ColorRgb, out double, out double, out double)

Converts a colour to hue, saturation and lightness, each 0 to 1.

public static void RgbToHsl(ColorRgb color, out double h, out double s, out double l)

Parameters

color ColorRgb

The colour.

h double

The hue.

s double

The saturation.

l double

The lightness.