POV-Ray : Newsgroups : povray.newusers : rgb <1,1,1> : Re: rgb <1,1,1> Server Time
5 Sep 2024 06:18:10 EDT (-0400)
  Re: rgb <1,1,1>  
From: Ken
Date: 10 Sep 2001 23:47:22
Message: <3B9D8A39.BE53B785@pacbell.net>
Wade wrote:
> 
> Is rgb <1,1,1> White?  If so, why don't we use the color keyword White?

Yes rgb <1,1,1> is White. So is rgb 1. And so is color red 1 green 1 blue 1.
I think you can also do rgb x+y+z and get the color white but haven't tried
it for a while and may be wrong.

The color White is not really a keyword. It is what we call a pre-declared
color declaration. The onle keyword colors in POV-Ray are red, green and
blue - all in lower case.

From colors.inc for example #declare White = rgb<1,1,1>;

Just because it does render a white color doesn't mean it has to.
You can also make "White" black by re-declaring it like this:

#declare White = rgb<0,0,0>;

You don't have to include colors.inc to add a color to an object. It
is very useful for newbies so they don't have to learn how to design
and control their own colors in the beginning. Later however you will
find that learning how to create your own custom colors will enhance
your ability to use the program. Sometimes you will not even know the
name for the color you have created but you will know how you made it.

If you want to see pre-declared colors taken to the extreme visit my
website and download my kolors.inc include file. It has many more
pre-declared colors available than the original colors.inc file.

-- 
Ken Tyler - http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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