Color_get_saturation - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Gets the saturation of an HSV color value, and returns the result. In ENIGMA color values are represented in the range of 0-255 for RGB and HSV, and alpha is between 0 and 1.

Parameters

  • col, HSV color value

Return Values

Returns the saturation of the color value, (between 0 and 255).

Example Call

color_get_saturation(c_black);

Demonstrates obtaining the saturation of the color value black, which is zero for black. If we asked for white it would return 255.