POV-Ray : Newsgroups : povray.newusers : RGB color Server Time
27 Nov 2024 21:57:04 EST (-0500)
  RGB color (Message 1 to 5 of 5)  
From: Bernd Michler
Subject: RGB color
Date: 24 Jun 2002 15:26:59
Message: <3d177283@news.povray.org>
Hello,

I would like to use a color from my website in a pov-file.

Its 255, 203,151
but if I use it with the rgb function, i get a white color? Thats not white
in rgb colors from windows.
Whats wrong?


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: RGB color
Date: 24 Jun 2002 15:29:12
Message: <Xns9237DA1033FA4raf256com@204.213.191.226>
"Bernd Michler" <mb### [at] anti-trojannet> wrote in
news:3d177283@news.povray.org: 

> Hello,
> I would like to use a color from my website in a pov-file.
> Its 255, 203,151
> but if I use it with the rgb function, i get a white color? Thats not
> white in rgb colors from windows.
> Whats wrong?

color rgb 1
color rgb <1,1,1>

POV-RAY's rgb values are 0.0 to 1.0 not 0 to 255
You can alsow use
color rgb <r/255,g/255,b/255> where r,g,b are 'windows' color values


-- 


Post a reply to this message

From: Warp
Subject: Re: RGB color
Date: 24 Jun 2002 15:59:19
Message: <3d177a17@news.povray.org>
Bernd Michler <mb### [at] anti-trojannet> wrote:
> Its 255, 203,151

  rgb <255/255, 203/255, 151/255>

  Also you might want to set assumed_gamma 1 in global_settings or else
you'll not get the same color.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: RGB color
Date: 24 Jun 2002 17:01:49
Message: <pan.2002.06.24.16.01.28.767921.635@mac.com>
On Mon, 24 Jun 2002 15:59:19 -0500, Warp wrote:

> Bernd Michler <mb### [at] anti-trojannet> wrote:
>> Its 255, 203,151
> 
>   rgb <255/255, 203/255, 151/255>

Less typing this way: rgb < 255, 203, 151>/255


-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

From: Bernd Michler
Subject: Re: RGB color
Date: 24 Jun 2002 17:05:13
Message: <3d178989$1@news.povray.org>
thx to all, this works fine.


"Christopher James Huff" <chr### [at] maccom> schrieb im Newsbeitrag
news:pan### [at] maccom...
> On Mon, 24 Jun 2002 15:59:19 -0500, Warp wrote:
>
> > Bernd Michler <mb### [at] anti-trojannet> wrote:
> >> Its 255, 203,151
> >
> >   rgb <255/255, 203/255, 151/255>
>
> Less typing this way: rgb < 255, 203, 151>/255
>
>
> --
> Christopher James Huff <chr### [at] maccom>
> POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
> WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

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