Skip to content

Color_get_saturation

hpgDesigns edited this page Aug 8, 2021 · 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.

This is number 1

Clone this wiki locally