Skip to content

Color_get_saturation

hugh greene edited this page Jun 20, 2022 · 1 revision

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.

Clone this wiki locally