From: Hans-Bernhard B. <br...@ph...> - 2003-10-30 08:06:35
|
On Wed, 29 Oct 2003, Petr Mikulik wrote: > Currently gnuplot can print colour palette table on screen by 'show > palette palette <n>'. I made a patch which can save it to a file, just 3 > columns of r,g,b, to be easily plotted by gnuplot as colour profiles. > The syntax proposed is below. Does somebody propose any other addition? > (E.g. how to save lut files?) If you're going to 'save' it to a file, wouldn't the most sensible place be a sub-option of the 'save' command? So IMHO it should be something like save palette '<filename>' ncolors <n> > show palette palette <n> {savergb {<scale> {int}} 'filename'} [...] The doubling of 'palette' in there feels wrong, to me. I seriously doubt that all that scaling is worth the hassle. Either write out floats, or ints scaled up to the usual 8-bit range. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |