POV-Ray : Newsgroups : povray.unofficial.patches : Announce: SkyPOV 0.1 : Re: color definition (Re: Announce: SkyPOV 0.1) Server Time
31 Jul 2024 00:23:37 EDT (-0400)
  Re: color definition (Re: Announce: SkyPOV 0.1)  
From: Peter Popov
Date: 10 Nov 2000 00:18:17
Message: <in0n0ts7vbq5e22kq7rjlb04ib7t4od0pu@4ax.com>
On Wed, 08 Nov 2000 16:48:36 -0500, Chris Huff <chr### [at] maccom>
wrote:

>But what would the resulting vector be? Would it be a rgb vector, or a 
>hsl, etc...
>#declare Color = color red 0.6 hue 0.75;
>Is Color.x red or hue? Is Color.y green or saturation?
>"color rgb" should only accept red, green, and blue...

Color.x is just a hack used by those who have been RTTL :) If you have
Color.r and Color.hue, why use Color.x and make your life harder? Of
course, for backwards compatibility it should be kept equivalent to
Color.r

Another approach is to use rgb space and automatically convert hsb to
it. So color hsb <2/3,1,1> would make a color rgb <0,0,1>. One may
still access the hsb values of this color, though.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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