POV-Ray : Newsgroups : povray.newusers : shapes and colors : Re: shapes and colors Server Time
28 Jul 2024 18:24:31 EDT (-0400)
  Re: shapes and colors  
From: Alain
Date: 3 Dec 2007 09:22:54
Message: <4754113e$1@news.povray.org>
Leroy nous apporta ses lumieres en ce 2007/12/02 22:42:
> Thanu wrote:
>> Is there a way to fill a shape with one color and give the shape's 
>> outer line a
>> different color?
>>
>> ex: I need to have a blue color box with its lines(which show the 
>> edges of the
>> shape surfaces) in red color.
>>
> 
> The others have give you good advice. But, how about a simple way.
> 
> box{-1,1 pigment{boxed color_map{[.1 Red][.1 Blue]}scale 1.01}}
> 
>  or have I missed the boat?
> 
It will only work for an almost square superellipsoid, and the lines will be 
rounded.
In the case of a box, all faces are at the same distance from the reference 
planes, and the boxed pattern behave the same. The result: all the faces receive 
a constant plain colour.

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you have ever said "I don't need 
no steenking modellers!!!"
Stephan Ahonen


Post a reply to this message

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