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

rgb(red,green,blue)


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]

 Already in v5.0.0

 5.7.0


rgb(red,green,blue)

Creates a colour: its arguments are integers ranging from 0 to 255 or an expression or attribute reference resolving to a number in this range. The value set is in hex form. For example:

$MyColor = rgb(255,0,0) sets a value of "#ff0000"

From v5.7.0, the individual channels of an RGB colour can be set or read using the '.red', '.green' and '.blue' Color data operators.


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


A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Functional Types : Function actions : rgb(red,green,blue)