colour_get_saturation(col);
Argument | Description |
---|---|
col | The colour to check |
Returns: Real
This function will return the saturation of the given colour. This is the amount of the colour tone that is mixed into the final colour and is part of the hue, saturation and value (luminosity) method for defining a colour. The following image illustrates how this value corresponds to the HSV scale of colour:
col = make_colour_hsv(random(255), colour_get_sat(c_teal), 255);
The above code gets the saturation used to make the colour constant "c_teal" and then uses that value to set a random colour to have the same saturation, storing the resulting colour in the variable "col".