|
|
Le 22/07/2017 à 00:28, jr a écrit :
> hi,
>
> can someone please point me to a color_map example which provides a
> smooth blend/gradient from (ideally) blue at 0 to red at 1 in 254
> increments? I'd prefer a solution which does not require (an array of)
> named colours.
From Blue to Red... in which colorspace would the transition be ?
The naive might expects a change in Hue, in HSV or HSL colorspace, with
a vibrant magenta at 0.5 (or going the other way on the circle, blue,
cyan, green, yellow, red ?)
You might want to have a look at the CHSL2RGB macro from colors.inc and
use it in the code provided in the other posts of this thread.
Post a reply to this message
|
|