Re: [Therion] Setting Scrap Colours
I use colour by scrap quite often as a drawing aid. Random is fine for that. Colour by map would be the more useful to be able to specify for 'finished presentations'. Colour by map has been discussed and requested from time to time. Bruce Sent from my Samsung device, hence the typo's -------- Original message -------- From: Footleg <drfootleg@gmail.com> Date: 11/03/2016 02:25 (GMT+12:00) To: List for Therion users <therion@speleo.sk> Subject: [Therion] Setting Scrap Colours I've been doing some more work on my Therion Tutorial, which has led me to explore more options than I typically use. One of these is to colour scraps different colours. All I can find in the Therion Book is how to specify to colour map-fg by altitude or by scrap. If I do either of these then the colours are assigned automatically. I've searched my email history and seen that colour by altitude has been discussed before, but I can't work out if there is supposed to be a way to set the colour for a scrap? If this isn't currently possible, then if would be ideally implemented in the layout so that if is not coded into the drawings of the scraps themselves. Perhaps a syntax to let you specify as follows: colour <scrap name> <colour> Am I missing a way to do this in the existing release? Footleg
Does colour by map not work? I thought it was an option specified in the Therion book in this section: • colo[u]r <item> <colour> ◃ customize colour for special map items (map-fg, mapbg, preview-above, preview-below, label). Colour range is 0–100 for grayscale, [0–100 0–100 0–100] triplet for RGB colours. For map-fg, you can use altitude, scrap or map as colours. In this case the map is coloured according to altitude, scraps or maps. For map-bg, you can use transparent to omit page background completely. For labels, you can switch colour on/off. If on, labels are coloured using the colour of associated scrap. Footleg On Thu, Mar 10, 2016 at 6:21 PM Bruce Mutton <bruce@tomo.co.nz> wrote:
I use colour by scrap quite often as a drawing aid. Random is fine for that. Colour by map would be the more useful to be able to specify for 'finished presentations'.
Colour by map has been discussed and requested from time to time.
Bruce
Sent from my Samsung device, hence the typo's
-------- Original message -------- From: Footleg <drfootleg@gmail.com> Date: 11/03/2016 02:25 (GMT+12:00) To: List for Therion users <therion@speleo.sk> Subject: [Therion] Setting Scrap Colours
I've been doing some more work on my Therion Tutorial, which has led me to explore more options than I typically use. One of these is to colour scraps different colours. All I can find in the Therion Book is how to specify to colour map-fg by altitude or by scrap. If I do either of these then the colours are assigned automatically. I've searched my email history and seen that colour by altitude has been discussed before, but I can't work out if there is supposed to be a way to set the colour for a scrap?
If this isn't currently possible, then if would be ideally implemented in the layout so that if is not coded into the drawings of the scraps themselves. Perhaps a syntax to let you specify as follows:
colour <scrap name> <colour>
Am I missing a way to do this in the existing release?
Footleg _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Hi Footleg I’ve been off line for a few days…. 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 don’t think this is yet a feature and the Therion Book text you extracted below tends to confirm that (maybe I’m wrong), but if it were being considered, then ‘colour by map’ would be my priority, followed by altitude, then scrap. Bruce _____ From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Footleg Sent: Friday, 11 March 2016 10:53 p.m. To: List for Therion users Subject: Re: [Therion] Setting Scrap Colours Does colour by map not work? I thought it was an option specified in the Therion book in this section: • colo[u]r <item> <colour> ◃ customize colour for special map items (map-fg, mapbg, preview-above, preview-below, label). Colour range is 0–100 for grayscale, [0–100 0–100 0–100] triplet for RGB colours. For map-fg, you can use altitude, scrap or map as colours. In this case the map is coloured according to altitude, scraps or maps. For map-bg, you can use transparent to omit page background completely. For labels, you can switch colour on/off. If on, labels are coloured using the colour of associated scrap. Footleg On Thu, Mar 10, 2016 at 6:21 PM Bruce Mutton <bruce@tomo.co.nz> wrote: I use colour by scrap quite often as a drawing aid. Random is fine for that. Colour by map would be the more useful to be able to specify for 'finished presentations'. Colour by map has been discussed and requested from time to time. Bruce Sent from my Samsung device, hence the typo's -------- Original message -------- From: Footleg <drfootleg@gmail.com> Date: 11/03/2016 02:25 (GMT+12:00) To: List for Therion users <therion@speleo.sk> Subject: [Therion] Setting Scrap Colours I've been doing some more work on my Therion Tutorial, which has led me to explore more options than I typically use. One of these is to colour scraps different colours. All I can find in the Therion Book is how to specify to colour map-fg by altitude or by scrap. If I do either of these then the colours are assigned automatically. I've searched my email history and seen that colour by altitude has been discussed before, but I can't work out if there is supposed to be a way to set the colour for a scrap? If this isn't currently possible, then if would be ideally implemented in the layout so that if is not coded into the drawings of the scraps themselves. Perhaps a syntax to let you specify as follows: colour <scrap name> <colour> Am I missing a way to do this in the existing release? Footleg _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Hi Bruce, Thanks for the summary. Yes I was asking if there was a way to specify the actual colours used per scrap or per map so that I could include the information in my tutorial. But I now understand this is not (yet?!) possible, and that the colours are assigned automatically (in the order the scraps or maps are included in the maps?). Footleg On Mon, Mar 14, 2016 at 8:23 AM Bruce <bruce@tomo.co.nz> wrote:
Hi Footleg
I’ve been off line for a few days….
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 don’t think this is yet a feature and the Therion Book text you extracted below tends to confirm that (maybe I’m wrong), but if it were being considered, then ‘colour by map’ would be my priority, followed by altitude, then scrap.
Bruce
------------------------------
*From:* therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] *On Behalf Of *Footleg *Sent:* Friday, 11 March 2016 10:53 p.m.
*To:* List for Therion users
*Subject:* Re: [Therion] Setting Scrap Colours
Does colour by map not work? I thought it was an option specified in the Therion book in this section:
• colo[u]r <item> <colour> ◃ customize colour for special map items (map-fg, mapbg,
preview-above, preview-below, label). Colour range is 0–100 for grayscale, [0–100
0–100 0–100] triplet for RGB colours.
For map-fg, you can use altitude, scrap or map as colours. In this case the map is
coloured according to altitude, scraps or maps.
For map-bg, you can use transparent to omit page background completely.
For labels, you can switch colour on/off. If on, labels are coloured using the colour of
associated scrap.
Footleg
On Thu, Mar 10, 2016 at 6:21 PM Bruce Mutton <bruce@tomo.co.nz> wrote:
I use colour by scrap quite often as a drawing aid. Random is fine for that. Colour by map would be the more useful to be able to specify for 'finished presentations'.
Colour by map has been discussed and requested from time to time.
Bruce
Sent from my Samsung device, hence the typo's
-------- Original message -------- From: Footleg <drfootleg@gmail.com> Date: 11/03/2016 02:25 (GMT+12:00) To: List for Therion users <therion@speleo.sk> Subject: [Therion] Setting Scrap Colours
I've been doing some more work on my Therion Tutorial, which has led me to explore more options than I typically use. One of these is to colour scraps different colours. All I can find in the Therion Book is how to specify to colour map-fg by altitude or by scrap. If I do either of these then the colours are assigned automatically. I've searched my email history and seen that colour by altitude has been discussed before, but I can't work out if there is supposed to be a way to set the colour for a scrap?
If this isn't currently possible, then if would be ideally implemented in the layout so that if is not coded into the drawings of the scraps themselves. Perhaps a syntax to let you specify as follows:
colour <scrap name> <colour>
Am I missing a way to do this in the existing release?
Footleg
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
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 say "color" instead, if you really must. Cheers, Olly
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
Excellent, this has been needed for some time, and opens up lots of possibilities. Not tested it yet, as I am up mountains. Just a thought, would it be possible to assign colour when adding maps to another map, so things like water paths can be shown on an overview without having to change the maps individually Eg map detail Map1 -colour[100 0 0] Map 2 -colour [0 100 0] Map3 -colour [0 0 100] endmap map Flow Map1 -colour[70 0 0] Map 2 -colour [70 0 0] Map3 -colour [0 0 100] endmap Thanks Andrew On 28 Mar 2016 3:38 a.m., "Olly Betts" <olly@survex.com> wrote:
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 _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
On Mon, Mar 28, 2016 at 07:47:49AM +0100, Andrew Atkinson wrote:
Excellent, this has been needed for some time, and opens up lots of possibilities.
Not tested it yet, as I am up mountains.
Just a thought, would it be possible to assign colour when adding maps to another map, so things like water paths can be shown on an overview without having to change the maps individually
Eg
map detail Map1 -colour[100 0 0] Map 2 -colour [0 100 0] Map3 -colour [0 0 100] endmap
That would also naturally extend to support colouring scraps within maps too. It probably isn't too hard if you know the code well, but therion doesn't currently parse options in that position and I'm not sure how to hook it up to do so. The current patch just adds a new option to a place they were already accepted. Cheers, Olly
Olly This is a very nice addition indeed. I tested it and it works with single level maps, but it doesn't seem to work with nested maps, or I missed something about the usage. It works with several map definitions, not being merged in an overall map like: * map M1 -colour [60 70 80]* * endmap* * map M2 -colour [60 70 80]* * endmap ...* * export map ........ pdf* However when I group M1 and M2 in a larger map(without specifying a colour) it overrides the colours and they do not appear. * map MGlobal* * M1* * M2* * endmap* To me it seems better that the lower level map colors are kept, unless the global one explicitly specifies a colour. I guess the example above was done with several map defs without grouping them in a larger one. Also, when I have several map defs(without colours and without a global map) and specify "colour map-fg map" the pieces get colored randomly. Maybe this is the expected behavior, but to me it sounds more logical to use the default map-fg colour until a map specifies one explicitly. The moment I set a global map (without colour) the default map-fg steps in. Am I asking too much :) Vladimir On Mon, Mar 28, 2016 at 5:37 AM, Olly Betts <olly@survex.com> wrote:
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 _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
+++ Olly Betts [2016-03-27 09:44 +0100]:
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.
I've included this, in the latest therion upload to Debian 5.3.16-10 which has now migrated to Testing. One with Geogiev's v8 3D (co-ordinate system export in 3D file) changes has been prepared but I need to fix a couple of other things before uploading. Soon, if I don't get too distracted... Wookey -- Principal hats: Linaro, Debian, Wookware, ARM http://wookware.org/
participants (7)
-
Andrew Atkinson -
Bruce -
Bruce Mutton -
Footleg -
Olly Betts -
Wookey -
Владимир Георгиев