Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Altered:
Function [other Function type actions]
Item [operators of similar scope]
Color [other Color operators]
DEPRECATED - use Color.brightness instead.
brightness(color[,value])
From v5.7.0 this operator is deprecated in favour of the '.brightness' operator.
brightness(color)
returns the brightness of a colour color, as a numeric value from 0 to 100. The color argument is a color type attribute or an expression resolving as the same. 0 is dark/black and 100 is light/white.
brightness(color,value)
returns a modified color that has the same hue and saturation as the original coloruu but that has an altered brightness. The color argument is a Color-type attribute or an expression resolving as the same. The range of value is 0 to 100+ or an expression or attribute reference resolving to the same. By setting a value greater than 100% colour brightness of the target colour can be increased. For example:
brightness("#333333",150)
will increase the dark gray's brightness by 50%.