|
From: Petr M. <mi...@ph...> - 2003-10-30 08:16:04
|
> > 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>
That could confuse user whether it is saving "set palette" or the discrete
r,g,b values of the current palette. I find it more logic to be able to save
the rgb table to a file at the same place it can write it to screen.
> > show palette palette <n> {savergb {<scale> {int}} 'filename'}
>
> The doubling of 'palette' in there feels wrong, to me.
It's OK -- there are more "show palette" print options, see "help palette".
> 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.
I think it is worth it: some apps loading rgb palettes require integer range
0..255, others float range 0..1.
---
Petr Mikulik
|