Pattern

Tinderbox Icon


Attribute Data Type:   string
Attribute Default Value:   diagonal
Atrribute Group:   Appearance
Atrribute Purpose:   Visual configuration
Attribute Inherited from Preferences?     No
Attribute Read-Only?   No

If Pattern is lines, the face of the (map view) note, is filled with alternative horizontal lines of Color and Color2. This looks best when the two colors are similar but not identical. The keywords are case-sensitive. Originally the default value was an empty string but since v5.10.1 the new default is 'diagonal'.

If Pattern is gradient, the face of the note is filled with a linear color gradient, top to bottom, from Color to Color2.

If Pattern is diagonal, the face of the note is filled with a linear color gradient, running from upper-left to lower-right corner, from Color to Color2.

If Pattern is cylinder, the face of the note is filled with a cylindrical gradient, running from Color at the top through Color2 at the midpoint, and then to Color again at the bottom.

If Pattern is not set (empty string), no pattern is applied — this is the default.

The remaining four patterns can't be set via the Pattern menu; bar(), vbar(), bargraph() and plot(). Rather they are set via manual editing of this attribute (Info view, key attribute) or via actions, rules, stamps. etc., acting upon it.

bar([value],[min],[max]). The draws as a horizontal 'progress bar', using Color and Color2. The 'progress' block is drawn in Color2.

vbar([value],[min],[max]). The draws as a vertical 'progress bar', using Color and Color2. The 'progress' block is drawn in Color2.

In both cases the parameters work the same way:

The arguments in the brackets may be numbers or expressions that can be evaluated as numbers. If a note's width is 3.0, then bar(15*$Width) is the same as writing bar(45).

If the pattern is written without parameters or brackets, it evaluates as if at 50%, e.g. vbar() and vbar are the same as vbar(50).

There are 2 further patterns, only used for Map view container plots: bargraph() & plot(). The patterns use the same parameters/syntax as bar()/vbar() above. The container then draws a plot over the top of its viewport area showing the value of the stated attribute (or expression) for each immediate child. The bargraph() gives a bar graph, and plot() a sparkline type plot. Containers only have one $Pattern value so can show a pattern either in the main icon or a container plot, but not both.


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

Up: Appearance Attributes

A Tinderbox Reference File : Attributes : Attribute Groups within Tinderbox : Appearance Attributes : Pattern

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