Color.red

Tinderbox Icon


Operator Type:   Property
Operator Scope of Action:   Item
Operator Purpose:   Color

$MyColor.red

New to v5.7.0, this operator sets or returns the value of the blue channel of an RGB color. 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 color channels be set. Examples:

$MyColor.red = 255 

$MyColor.red = "#ff" 

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

$MyNumber = $MyColor.red  (gives 255)

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


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

Up: Full Operator List
Previous: Color.hue  Next: Color.saturation 

A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : Color.red

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox