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

Alan Braslau braslau.list at comcast.net
Mon Jun 8 21:28:10 CEST 2020


On 08/06/20 13:25, Hans Hagen wrote:
> 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

*I* clearly prefer the Metapostish way!

:-)

Alan


More information about the dev-context mailing list