POV-Ray : Newsgroups : povray.general : HSL to RGB Server Time
1 Nov 2024 20:24:39 EDT (-0400)
  HSL to RGB (Message 1 to 2 of 2)  
From: nobody->
Subject: HSL to RGB
Date: 7 May 2000 21:40:34
Message: <39161C08.5305B01D@geocities.com>
If I'm not mistaken, there is a POV macro that will convert HSL colors
to RGB values that you can use in scenes.  However, I have been having
trouble finding it.  Does anyone know where it is or of any equations I
can use to implement my own macro?


Post a reply to this message

From: Ken
Subject: Re: HSL to RGB
Date: 7 May 2000 22:41:23
Message: <391628CD.1DBD1B28@pacbell.net>
"nobody->" wrote:
> 
> If I'm not mistaken, there is a POV macro that will convert HSL colors
> to RGB values that you can use in scenes.  However, I have been having
> trouble finding it.  Does anyone know where it is or of any equations I
> can use to implement my own macro?

----------
     subject: Re: HSL --> RGB
        Date: Sun, 11 Oct 1998 12:23:11 -0700
        From: Mark Donovan <don### [at] worldnetattnet>
  Newsgroups: povray.text.scene-files
  References: 1

Mark writes:

I've done it. Here's a version of HSL to RGB and also a macro for HSB to
RGB. The descriptions explain the difference. These versions work
without trig or vector functions. To be complete, I've tacked on RGB to
HSL and RGB to HSB conversions.
----------

You will also find a hex2rgb macro posted in the same thread.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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