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

Color.green


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Property   [other Property type actions]

 Item   [operators of similar scope]

 Color   [other Color operators]

 5.7.0

 


$MyColor.green

This property sets or returns the value of the green channel of an RGB colour. The value may be set with a number (0-255) or hex number (#00 - #ff). The return value (if coerced to a string or number) is always a number, i.e. 255 and not #ff. By comparison the rgb() operator requires that the values for all three colour channels be set. Examples:

$MyColor.green = 255 

$MyColor.green = "#ff" 

$MyOtherColor.red = $MyColor.green (value of $MyOtherColor red channel is that of $MyColor green channel)

$MyNumber = $MyColor.green  (gives 255)

$MyString = $MyColor.green  (gives "255")


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


A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Functional Types : Property actions : Color.green