HlsColor

Base Type: Color

A class for a color in the HLS (Hue, Luminance, Saturation) color system.

Property

Type

Description

Hue

short

The hue component of an HLS color.

Lightness

byte

The lightness component of an HLS color.

Saturation

byte

The saturation component of an HLS color.

Remarks

This color HLS model is similar to the HSV color model, however, HLS colors use Lightness instead of Value. The Hue property may be set to a number between 0 and 360, indicating in degrees where the hue lies on the color wheel. The Saturation property is a number between 0 and 100 indicating the saturation, or purity, of the color, and the Lightness property is a number between 0 and 100 indicating the lightness, or paleness, of a color. Regardless of other properties, a lightness of 0 is always black, and a lightness of 100 is always white. All of the properties have a default of 0; therefore, the default HLS color is black.

Use this class to define color objects based on the Hue, Saturation, and Lightness color model.

2/28/2020