File talk:CIExy1931 CIERGB.png

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

The person, or program, requesting a SVG version of this image probably doesn't have a very clear understanding of the nature of the diagram, the nature of SVG, and the interaction between the two. Producing a satisfactory SVG image would likely need to use some advanced SVG trickery that might excite the bugs in SVG applications.

Each pixel of the colored portion of this diagram needs to be computed using complex formula.

It is possible that one could define a color space transform such that the x,y coordinates are directly mapped into the CIE color space such that a cartesian gradient would produce the desired result, except that SVG only allows linear and radial gradients. Using ecmascript to compute the colored fill would probably be staggeringly slow, for a 4Kx4K image, an ecmascript function would be called of order 16 million times. Decent interpolation of a sufficiently high resolution raster image, with vector overlays, might give passable results for many applications.

There is a program ppmcie, part of the [netpbm] package, that will generate a similar image at any desired resolution.

Whitis (talk) 05:37, 18 May 2008 (UTC)[reply]

One option, I think, would be to have the SVG include the colors as a raster image but the grid and lines as vector graphics. —Ben FrantzDale (talk) 16:02, 18 May 2008 (UTC)[reply]
Try starting with this SVG of the basic diagram: Image:CIExy1931.svg. —Ben FrantzDale (talk) 00:52, 23 May 2008 (UTC)[reply]