[chaoscope] Re: Tutorial: making own color gradients

  • From: Christian Weiß <cweiss@xxxxxxxxxx>
  • To: chaoscope@xxxxxxxxxxxxx
  • Date: Sat, 28 Oct 2006 14:04:23 +0200

But he wrote that he starts with white, then go to yellow, then to blue and end with black

So i thing the color triples must be

1,1,1 (white)
1,1,0 (yellow)
0,0,1 (blue)
0,0,0 (black)

No, the way he had it is correct. .333 is less than .5 and should go before
it.


On 10/27/06, Christian Weiß <cweiss@xxxxxxxxxx> wrote:

Could it be that there is a mistake?

>
> A bit of hacking showed that the sets of four numbers are a 'slope
factor' (from 0 to 1) followed by the RGB triplet. The following gives a
gradient starting white, to yellow a third of the way along, then to blue at
the mid point, and ending in black.
>
> gradient {
> variable color
> colors <0, 1, 1, 1,
> .333, 0, 0, 1,
> .5, 1, 1, 0,
> 1, 0, 0, 0>
> }
>
> This may well be documented but I HTC rather then FTFM ! :-)
>
>
Mustn't it be?


gradient {
                 variable color
                colors <0, 1, 1, 1,
                          .5, 1, 1, 0,
                       .333, 0, 0, 1,
                           1, 0, 0, 0>
               }


====================================================== The Chaoscope mailing-list Archives : //www.freelists.org/archives/chaoscope Admin contact : chaoscope@xxxxxxxxxxxxxx Web site : http://www.chaoscope.org ======================================================




======================================================
The Chaoscope mailing-list
Archives : //www.freelists.org/archives/chaoscope
Admin contact : chaoscope@xxxxxxxxxxxxxx
Web site : http://www.chaoscope.org
======================================================

Other related posts: