Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
examples [2019/12/05 18:00] – Listing the default rainbow colour values tarquinwj | examples [2023/12/03 07:41] (current) – Document select map -colour behaviour brucemutton | ||
---|---|---|---|
Line 432: | Line 432: | ||
**lookup altitude examples** | **lookup altitude examples** | ||
+ | |||
+ | The default automatic altitude colour bands take their highest and lowest values from the highest and lowest survey stations for the parts of the survey that are used in the rendering. It takes all the survey stations within the " | ||
+ | |||
+ | The legend will then be divided up into 7 numbers; the highest station, the lowest station, and 5 equally spaced values in between. These values are then rounded to the nearest integer when rendering (this rounding will also happen when displaying legend lookup values). This makes it quite possible that no scrap will ever be the colour of the highest and lowest stations, since scraps normally have more than one station in them, and the scrap altitude and colour will be taken from the average of those. The colour, as with lookup colours, will be faded the appropriate distance between the nearest colour values on either side. | ||
+ | |||
+ | This also means that for a cave with very little vertical range, the default legend may show "10, 10, 11, 11, 11, 12, 12", when in actual fact, the numbers are all part way between 10 and 12. | ||
+ | |||
+ | Using a lookup table allows you to take much more control, giving neater colour intervals (like one colour every 10 metres), or allowing the highest and lowest scraps to actually be the top and bottom colours. | ||
lookup altitude -title " | lookup altitude -title " | ||
Line 442: | Line 450: | ||
endlookup | endlookup | ||
- | It should generate red -> blue scale with desired values. | + | It should generate red -> blue scale with desired values. Note that this is a linear fade with red at one end, blue at the other, and purple in the middle; it does **not** rotate the hue via orange, yellow or green in the middle. |
You may specify multiple lookup tables for same criterion using an index, ie ":" | You may specify multiple lookup tables for same criterion using an index, ie ":" | ||
Line 504: | Line 512: | ||
Same should work with scraps. | Same should work with scraps. | ||
- | With maps you may specify colour of a particular map when selecting it your thconfig, without the need for a lookup | + | **Specifying individual map colours at compile time** |
+ | |||
+ | With maps you may specify colour of a particular map when selecting it in your thconfig, | ||
+ | |||
+ | select map1 -colour [100 0 0] | ||
+ | |||
+ | The Therion Book 6.1.7 suggests that map command-like options include colour, however this seems to be incorrect. | ||
+ | |||
+ | **‘select’** | ||
+ | |||
+ | Description: | ||
+ | |||
+ | Options: | ||
+ | … | ||
+ | |||
+ | • colo[u]r < | ||
+ | |||
+ | In summary: | ||
+ | |||
+ | Select map -colour overrides layout or lookup | ||
+ | |||
+ | * colour map-fg [r g b] | ||
+ | * colour map-fg scrap | ||
+ | * colour map-fg map | ||
+ | |||
+ | Select map -colour does not override layout or lookup colour map-fg statements when… | ||
- | | + | |
- | Make sure you don't have any 'colour map-fg' statements however, as if present they will override [I THINK] | + | * colour map-fg topo-date, unless the map has no date |
+ | | ||