saturation(
COLOR
)

The saturation( function extracts the saturation from a color.


Parameters

This function has one parameter:

color – is the color you want to extract information from. This must either be a binary value created with the rgb(, hsb(, or other color generation functions, or must be an HTML color specification like "FF0000" (red) or "0000FF" (blue). See Colors for more information.


Description

This function extracts the saturation from a color.

The example below calculates the saturation of the color (in percent, from 0 to 100%).

Intensity=saturation(HighlightColor)*100/65535

For more examples of color, see Colors.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0