Hi Pavel -
I wondered about trying CYMK colors instead of RGB. Thanks for the hint
on how to do it.
The web site https://colorcodes.io is useful. CYMK codes have to be
converted from 0-255 range to 0-100 range, but that is pretty easy.
I tried several combinations. [100 0 0 0] comes out as cyan, a sort of
light blue. [97 84 0 4] comes out just about the same as what I
currently get. Back to RGB, [3 15 96] looks almost black.
All of this is using Okular as the PDF viewer. I asked one of my caving
friends to check my maps on his system. Using Windows 10 and Adobe
Acrobat he reports that the water areas in my maps are a nice shade of
blue. That is using [0 0 100].
I think what this means is that Adobe Reader is the only PDF viewer that
will properly render the colors, and that is probably because of how it
handles transparency overlays.
For my maps - I think I am going to carry on with [3 15 96] for water
and [100 86 66] for map-fg. That should be about the same color as
"Blue Screen of Death" in Windows. The rendering in Okular is not
ideal, but it is readable.
===============
Bill Gee
On 11/16/24 05:41, Pavel Herich wrote:
Have you tried this in CMYK rather than RGB?
symbol-color line water-flow [100 0 0 0]
or
color-model cmyk
def a_water (expr p) =
T:=identity;
thfill p withcmykcolor (1,0,0,0);
enddef;
Pavel
Dňa 2024-11-15 22:00 Bill Gee napísal(a):
Well, this is interesting1 I changed the line in thconfig to green as
Bruce suggested. The water areas come out as a rather light green,
not a fully saturated color. Changing it back to red {0 0 100] gives
a sort of light black color.
Looking in the thbook, I see that color in this syntax is an RGB
triplet. I think the range for each triplet is 0 to 100. Is that
right? I tried setting it to [0 0 200] but Therion tossed an error
message about that.
Just for testing, I commented out another line in the layout section:
color map-fg [100 86 66]
With that change I now get very light blue water and a white background.
It seems there is an interaction between the map-fg color and the area
color. I tried adjusting the the map-fg colors, assuming that lower
numbers would be paler colors. Nope! Using [50 43 33] gave a dark
brown background, and using [25 20 16] gave an almost black background.
I set the map-fg colors back to original, then changed the water area
color to [0 0 10]. The result is almost black.
===============
Bill Gee
On 11/15/24 14:06, Bruce Mutton wrote:
In the thconfig file I have this line in the layout section:
symbol-color area water [0 0 100]
Bill, have you tried
symbol-color area water [0 100 0] #green
and similar for the metapost?
Sounds like all your pdf viewers are telling you something. That the
lines are not used in your thconfig, or they are being superseded by
a subsequent contradictory entry :)
Bruce
_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion
_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion
_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion