POV-Ray : Newsgroups : povray.binaries.images : Colour Interpolation in various colour spaces : Re: Colour Interpolation in various colour spaces Server Time
30 Jul 2024 20:31:23 EDT (-0400)
  Re: Colour Interpolation in various colour spaces  
From: Le Forgeron
Date: 6 Jan 2011 15:23:48
Message: <4d2624d4@news.povray.org>
Experimental code... Do not expect it

Texture map interpolation

#default{ finish { ambient 1 } }
#declare C_STRAND = color rgb <1/2,1/2,1>;

#declare C_CLEAR  = color red 1;
#declare C_GREEN  = color green 1;

#declare T_STRAND = texture { pigment {color C_STRAND} }

#declare T_CLEAR = texture { pigment {color C_CLEAR} }
#declare T_GREEN = texture { pigment {color C_GREEN} }

#declare T1=texture{
	onion texture_map
	{
		colour_space pov
			[0.0 T_STRAND]
			[0.5 T_CLEAR]
			[1.0 T_GREEN]
	}
}


Post a reply to this message


Attachments:
Download 'ci.png' (289 KB)

Preview of image 'ci.png'
ci.png


 

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