POV-Ray : Newsgroups : povray.general : HSL macro Server Time
5 Nov 2024 05:25:11 EST (-0500)
  HSL macro (Message 1 to 4 of 4)  
From: Margus Ramst
Subject: HSL macro
Date: 9 Jul 1999 14:51:22
Message: <37864457.D5970502@peak.edu.ee>
I created a set of macros for specifying colours in HSL
(hue/saturation/lightness) mode, as I find HSL much more comfortable for
tweaking colours.
There is also a macro for tweaking the saturation and brightness of a colour
specified in RGB mode.
I'll post them to binaries.utilities, in case someone's interested.

Margus


Post a reply to this message

From: Ken
Subject: Re: HSL macro
Date: 9 Jul 1999 20:13:25
Message: <37868FD8.89AE145F@pacbell.net>
Margus Ramst wrote:
> 
> I created a set of macros for specifying colours in HSL
> (hue/saturation/lightness) mode, as I find HSL much more comfortable for
> tweaking colours.
> There is also a macro for tweaking the saturation and brightness of a colour
> specified in RGB mode.
> I'll post them to binaries.utilities, in case someone's interested.
> 
> Margus

  Just curious but why do you feel more comfortable adjusting colors using
HSL as opposed to Pov's native rgb system ?

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Margus Ramst
Subject: Re: HSL macro
Date: 10 Jul 1999 08:00:50
Message: <37873611.5636D18F@peak.edu.ee>
Ken wrote:
> 
>   Just curious but why do you feel more comfortable adjusting colors using
> HSL as opposed to Pov's native rgb system ?
> 

It is more intuitive. (Normal) people don't define colours in terms of RGB, but
rather in terms of the hue (greenish, blueish, warm, cold), how bright or dull
the colour is (i.e. saturation) and how dark or light it is.
Let's say you create a colour in RGB, but find it too saturated. Decreasing
saturation in RGB is difficult, without compromising the hue and/or lightness.
In HSL, I first find the hue that suits me (decreasing the H value if I want it
to be warmer, increasing for colder). Then I start tweaking S and L, while
retaining the original hue. Opinions may vary, of course, but I find this
approach easier.

Margus


Post a reply to this message

From: David Wilkinson
Subject: Re: HSL macro
Date: 11 Jul 1999 12:06:16
Message: <3788bc8a.24353458@news.povray.org>
On Sat, 10 Jul 1999 15:01:21 +0300, Margus Ramst <mar### [at] peakeduee> wrote:

>Ken wrote:
>> 
>>   Just curious but why do you feel more comfortable adjusting colors using
>> HSL as opposed to Pov's native rgb system ?
>> 
>
>It is more intuitive. (Normal) people don't define colours in terms of RGB, but
>rather in terms of the hue (greenish, blueish, warm, cold), how bright or dull
>the colour is (i.e. saturation) and how dark or light it is.
>Let's say you create a colour in RGB, but find it too saturated. Decreasing
>saturation in RGB is difficult, without compromising the hue and/or lightness.
>In HSL, I first find the hue that suits me (decreasing the H value if I want it
>to be warmer, increasing for colder). Then I start tweaking S and L, while
>retaining the original hue. Opinions may vary, of course, but I find this
>approach easier.
>
>Margus

The HSL scheme certainly seems more intuitive to me than RGB.  In trying out
your macros I have created a sample scene with an array of tiles.  The source is
posted in binaries.utilities and the image; HSLTest.jpg is in binaries.images.
Thanks for the macros.
David
------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
------------


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.