From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4370411c07c164af X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!8g2000prb.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Color gradients lib Date: Tue, 8 Feb 2011 12:26:11 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 81.62.88.124 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1297196771 26157 127.0.0.1 (8 Feb 2011 20:26:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 8 Feb 2011 20:26:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 8g2000prb.googlegroups.com; posting-host=81.62.88.124; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:17997 Date: 2011-02-08T12:26:11-08:00 List-Id: > Thanks for any suggestions. Funny, I've looked for the same thing one month ago and was about to program it. From what I've found on the Web, these nice color scales can be obtained with functions that are piecewise constant, piecewise linear in each fundamental color. More specifically you can imagine a cube where x=red, y=green, z=blue and you go along the edges from (0,0,1) to (1,0,0). ______________________________________________________________ Gautier's Ada programming -- http://gautiersblog.blogspot.com/ NB: follow the above link for a working e-mail address