POV-Ray : Newsgroups : povray.windows : Include color-changes in ini-files. possible? : Re: Include color-changes in ini-files. possible? Server Time
17 May 2024 06:58:27 EDT (-0400)
  Re: Include color-changes in ini-files. possible?  
From: Charles C
Date: 19 Oct 2006 18:45:00
Message: <web.4537ff2dbb20a1502f046a7d0@news.povray.org>
One possible way:

in thefile.ini:
Declare=Color_R=1
Declare=Color_G=1
Declare=Color_B=0

in thefile.pov:
//default Color_ values:
#ifndef(Color_R) #declare Color_R=.5; #end
#ifndef(Color_G) #declare Color_G=.5; #end
#ifndef(Color_B) #declare Color_B=.5; #end

background{rgb <Color_R,Color_G,ColorB>}



>
> // Background:
> background { color rgb <0,0,0>}
>
> // Lights:
> light_source {
>  <0,-46.0887,-92.0887>  // Latitude,Longitude,Radius: 45,0,130.233
>  color rgb <1,1,1>
>


Post a reply to this message

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