From: "Alex R. Mosteo" <alejandro@mosteo.invalid>
Subject: Re: Color gradients lib
Date: Wed, 09 Feb 2011 09:53:18 +0100
Date: 2011-02-09T09:53:18+01:00 [thread overview]
Message-ID: <iitkmc$jac$1@news.eternal-september.org> (raw)
In-Reply-To: 1lxxuu6fkr6fy.1dw6oop7xv799.dlg@40tude.net
Dmitry A. Kazakov wrote:
> On Tue, 08 Feb 2011 11:58 +0100, Alex R. Mosteo wrote:
>
>> I need to plot some data (2D maps) and I have everything in my drawing
>> library except some readily usable gradients. I was wondering if some Ada
>> library out there has this before making my custom one.
>
> OK, that is an ill-defined problem because the visual appearance of a
> gradient (linear function of position) depends on the color space you are
> using. The RGB color space is quite unnatural to human eye. L*a*b is much
> better, but computationally problematic. HLS is a very coarse
> approximation of L*a*b. GtkAda contributions has an implementation of
> improved HLS model.
>
> http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#8
>
> For building a gradient I would convert the end points to IHLS and then
> use linear functions for hue, luminance and saturation between the points.
> The obtained IHLS colors are then converted back to RGB.
Thanks everybody for the discussion. I'm going to try this approach.
next prev parent reply other threads:[~2011-02-09 8:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 10:58 Color gradients lib Alex R. Mosteo
2011-02-08 13:16 ` Yannick Duchêne (Hibou57)
2011-02-08 14:52 ` Alex R. Mosteo
2011-02-08 15:18 ` Yannick Duchêne (Hibou57)
2011-02-08 15:21 ` Yannick Duchêne (Hibou57)
2011-02-08 16:27 ` Alex R. Mosteo
2011-02-08 19:30 ` Yannick Duchêne (Hibou57)
2011-02-08 18:00 ` Dmitry A. Kazakov
2011-02-08 19:27 ` Yannick Duchêne (Hibou57)
2011-02-08 19:36 ` Yannick Duchêne (Hibou57)
2011-02-08 19:54 ` Dmitry A. Kazakov
2011-02-09 8:53 ` Alex R. Mosteo [this message]
2011-02-08 20:26 ` Gautier write-only
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox