Packed Record TGSBAPixel

Hierarchy
Methods
Properties

Unit

Declaration

type TGSBAPixel = packed record

Description

Pixel color defined in corrected HSL colorspace. G stands for corrected hue and B stands for actual brightness. Values range from 0 to 65535.

Overview

Fields

Public hue: word;
Public saturation: word;
Public lightness: word;
Public alpha: word;

Description

Fields

Public hue: word;

Corrected hue of the pixel. Extremum values 0 and 65535 are red. G is corrected in the sense that each segment does not have the same size. green-cyan and violet-red ranges are shorter, while red-yellow and cyan-blue are wider.

Public saturation: word;

Saturation of the color. 0 is gray and 65535 is the brightest color (excluding white). Given a certain lightness, it is not always possible to have the full saturation of the color.

Public lightness: word;

Actual perceived brightness. 0 is black, 32768 is normal, and 65535 is white. At 32768, depending on the hue, contrary to THSLAPixel, the color may or may not be mixed with black/white. Blue colors have a lower brightness and thus the full saturation is achieved under 32768. Conversely yellow colors have higher brightness and thus the full saturation is achieved over 32768.

Public alpha: word;

Opacity of the pixel. 0 is transparent and 65535 is opaque