[NTG-context] colorizing pictures

Henning Hraban Ramm texml at fiee.net
Tue Mar 19 16:23:38 CET 2019


Am 2019-03-19 um 13:23 schrieb Hans Hagen <j.hagen at xs4all.nl>:

> On 3/18/2019 7:45 PM, Henning Hraban Ramm wrote:
> from one of the manuals ...
> 
> \starttext
> 
> \definecolor [my-blue]   [c=1,m=.38,y=0,k=.64] % pms 2965 uncoated m
> \definecolor [my-yellow] [c=0,m=.28,y=1,k=.06] % pms  124 uncoated m
> 
> \definespotcolor [my-blue-100]   [my-blue]   [p=1]
> \definespotcolor [my-yellow-100] [my-yellow] [p=1]
> \definespotcolor [my-blue-50]    [my-blue]   [p=.5]
> \definespotcolor [my-yellow-50]  [my-yellow] [p=.5]
> 
> \definemultitonecolor [my-mix] [my-blue=.12,my-yellow=.28] [c=.1,m=.1,y=.3,k=.1]

So it works only with toned or multitone colors and only with _some_ greyscale pictures, not with bitmaps and also not with my greyscale dodo.

I can also only use one version my-blue – if I use my-blue-100, then my-blue-50 stays grey, and if I only use my-blue-50, it’s the same tone as 100.

Something’s very fishy.


\setupexternalfigures[
    location={local,global,default},
]

\definecolor [my-blue]   [c=1,m=.38,y=0,k=.64] % pms 2965 uncoated m
\definecolor [your-blue]   [c=1,m=.38,y=0,k=.64] % pms 2965 uncoated m
\definecolor [my-yellow] [c=0,m=.28,y=1,k=.06] % pms  124 uncoated m

\definespotcolor [my-blue-100]   [my-blue]   [p=1]
\definespotcolor [my-yellow-100] [my-yellow] [p=1]
\definespotcolor [my-blue-50]    [my-blue]   [p=.5]
\definespotcolor [my-yellow-50]  [my-yellow] [p=.5]
\definespotcolor [your-blue-100]   [your-blue]   [p=1]

\definemultitonecolor [my-mix] [my-blue=.12,my-yellow=.28] [c=.1,m=.1,y=.3,k=.1]

\useexternalfigure[milli][mill.png][object=no,width=.3\textwidth]
\useexternalfigure[dodog][img/dodo_g.png][object=no,width=.3\textwidth]
\useexternalfigure[dodob][img/dodo_1bit.png][object=no,width=.3\textwidth]
\useexternalfigure[cowi][cow.pdf][object=no,width=.3\textwidth]

\define[1]\FIG{%
\section{#1}
\startcombination[3*1]
 {\externalfigure[milli][color=#1]}   {grey}
 {\externalfigure[dodog][color=#1]}   {grey}
 {\externalfigure[dodob][color=#1]}   {bitmap}
\stopcombination
}

\starttext

%\FIG{blue}

%\FIG{my-blue}

%\FIG{my-blue-100}

%\FIG{my-blue-50}

%\FIG{my-mix}

\FIG{my-blue-50}

\FIG{your-blue-100}

\FIG{my-mix}

\stoptext



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list