[dev-context] Light colors in colo-imp-rgb.mkiv

Hans Hagen j.hagen at xs4all.nl
Mon Jun 8 21:25:28 CEST 2020

On 6/8/2020 7:36 AM, Aditya Mahajan wrote:
> Hi,
> The 'light' colors defined in colo-imp-rgb.mkiv are not light!
> \definecolor [lightred]      [r=1,   g=0,   b=0]
> \definecolor [lightgreen]    [r=0,   g=1,   b=0]
> \definecolor [lightblue]     [r=0,   g=0,   b=1]
> \definecolor [lightcyan]     [r=0,   g=1,   b=1]
> \definecolor [lightmagenta]  [r=1,   g=0,   b=1]
> \definecolor [lightyellow]   [r=1,   g=1,   b=0]

hm, a compatibility thing

> Is this intentional? How about replacing them with somewhat reasonable 
> defaults?
> \definecolor [lightred]      [r=1,    g=0.5, b=0.5]
> \definecolor [lightgreen]    [r=0.5,  g=1,   b=0.5]
> \definecolor [lightblue]     [r=0.75, g=1,   b=1]
> \definecolor [lightcyan]     [r=0.5,  g=1,   b=1]
> \definecolor [lightmagenta]  [r=1,    g=0.5, b=1]
> \definecolor [lightyellow]   [r=1,    g=1,   b=0.5]
> See attached output. These are not the ideal choices in terms of shades, 
> but I have chosen values which are least subjective and still give 
> reasonable shades.
your blue is kind of weird .. this is the metapostisch way:

\definecolor [lightred]      [.5(red,white)]
\definecolor [lightgreen]    [.5(green,white)]
\definecolor [lightblue]     [.5(blue,white)]
\definecolor [lightcyan]     [.5(cyan,white)]
\definecolor [lightmagenta]  [.5(magenta,white)]
\definecolor [lightyellow]   [.5(yellow,white)]

which i bet you prefer


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the dev-context mailing list