Color Data Type

Tinderbox Icon

Color

Any one of the following:

If no default value is specified, a Color type defaults to an empty string (which is treated by Tinderbox as the value 'normal'); in key attribute displays a white color chip is displayed. In some cases, Tinderbox will show a dark red color as a 'not initialised' color value; it is hex color code #6f0000, though its derivation as a value is not clear.

Note that as 8-bit color settings are translated within the app into 16-bit colors, rounding errors can occur. So, in some cases - most likely using HSV and HSV based transforms - the values used might not correspond precisely to those set by the user.

When accessed by ^get()^ or ^getFor()^ export codes, the colour is always returned as a hex figure including a # prefix, e.g. "#FF9900". Similarly, using format() with a colour attribute will always result in a hexadecimal value string regardless of the stored value. Note that coercing a default (blank) color to a string value using format() will result in the color value "#ffffff", which is not strictly the blank value so be wary of using that as a means to check a blank color value; better is to use a short form Boolean test.

Listing of Color-type system attributes.


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

Up: Attributes: Data Types
Previous: Boolean Data Type  Next: Date Data Type 

A Tinderbox Reference File : Objects & Concepts : Attributes: Data Types : Color Data Type

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