DIM function
Color
The color to dim.
Amount
A number between 0 and 100 (inclusive), where 0 means that no modifications should be made and 100 means that the resulting color should be black.
Returns
A dimmed version of the given color.
Dims the given color by a specified amount. The implementation uses the Hue-Saturation-Lightness (HSL) color model to linearly decrease the saturation and lightness with the given amount, relative to their existing values. Use BRIGHTEN to perform the reverse operation.
This function is Calcapp-specific.
Examples
Returns a variant of the default red color, which has been dimmed by 50 percent.
Returns variants of the default red and green colors, which have both been dimmed by 50 percent.
Returns variants of the default red and green colors, which have been dimmed by 50 and 25 percent, respectively.