|
|
"Kenneth" <kdw### [at] gmailcom> wrote:
> Here's a much better-looking color_map to use (for all THREE pigments.)...
>
> The new one:
> color_map{
> [0.0 rgb <1,0,0>]
> [0.5 rgb 0.47*<0,1,0>]
> [1.0 rgb 0.99*<0,0,1>]
> }
>
> OR, the srgb version...
> color_map{
> [0.0 srgb <1,0,0>]
> [0.5 srgb .715*<0,1,0>]
> [1.0 srgb .99*<0,0,1>]
> }
Well, that's wrong :-/
The *idea* is to get a continuous spectrum of colors, from red to green to
blue-- and those index-list values certainly don't do that. The index should be
divided into THREE equal segments. The following is much better...
blend_mode ... // optional
blend_gamma ... // optional
[0.0 rgb <1,0,0>]
[0.333 rgb <0,1,0>]
[0.666 rgb <0,0,1>]
[1.0 rgb <1,0,0>]
BTW, it makes no difference if you use srgb colors instead, because the three
colors are all at FULL intensity. The srgb 'gamma curve' only applies to values
*between* 0.0 and 1.0.
Post a reply to this message
|
|