This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

brightness(color[,value]) (DEPRECATED)

This pages describes features, codes or syntax whose use is now DEPRECATED, i.e. not advised either for new or continued pre-existing use.

Deprecated aspects of Tinderbox may be supported on a legacy basis but the latter support can't be presumed to be indefinite. Therefore you should update your active TBX documents to latest practice as soon as practical.


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%.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Deprecated Usage : Deprecated Action Codes : brightness(color[,value]) (DEPRECATED)