[Therion] Setting Scrap Colours

Olly Betts olly at survex.com
Mon Mar 28 04:37:44 CEST 2016


On Sun, Mar 27, 2016 at 09:44:37AM +0100, Olly Betts wrote:
> On Mon, Mar 14, 2016 at 09:23:39PM +1300, Bruce wrote:
> > Colour by map works just fine, as does colour by scrap or altitude.
> > 
> > In the context of your question I thought you were trying to SPECIFY
> > which colour a particular scrap (or map or altitude) would be
> > assigned.
> 
> I was "commissioned" to implement the ability to specify the colour
> used for each map - patch attached.
> 
> With this (surprisingly small) change you can specify the colour for
> each map, which then overrides the automatic choice when the layout
> specifies "colour map-fg [map]".  Any maps without one get the same
> automatic colour they would before.
> 
> Usage example:
> 
> map 2012.map -projection plan
>   colour [0 70 0]
>   # etc
> endmap

You can also specify the colour on the "map" line (which is probably
clearer):

map 2012.map -projection plan -colour [0 70 0]
  # etc
endmap

Jenny Black produced an example showing what you can do with this patch:

https://survex.com/~olly/107-plan-col-year.pdf

Cheers,
    Olly



More information about the Therion mailing list