On Friday, 6 June 2025 05:00:22 BST G. Branden Robinson wrote:
> > As a starting point, try looking at ImageMagick.
> 
> ImageMagick/GraphicsMagick is a big software system of itself.  What
> should I be looking at?

Hi Nate and Branden,

There is a colour map array embedded in color.c. It combines colours for SVG 
(same as HTML), X11 and XPM in this way:-

    { "purple", 128, 0, 128, 1, SVGCompliance },
    { "purple", 160, 32, 240, 1, X11Compliance | XPMCompliance },
    { "purple1", 155, 48, 255, 1, X11Compliance },
    { "purple2", 145, 44, 238, 1, X11Compliance },
    { "purple3", 125, 38, 205, 1, X11Compliance },
    { "purple4", 85, 26, 139, 1, X11Compliance },

You can see here the different shade for the colour "purple", the same as 
reported in my table. Also the only "colour" for XPM compliance which is not 
duplicated for X11 is "none" (which is possibly the same as groff's "default" 
colour (i.e. \m[default]) which leaves it up to the output driver). So XPM can 
be ignored, since it adds no "new" colour names.

Cheers 

Deri

Note: This is in ImageMagick-6.7.3-4 (I happened to have the source). So it 
does not include "rebeccapurple" which was added to CSS last November.



Reply via email to