POV-Ray : Newsgroups : povray.general : Black on left and white on right. : Re: Black on left and white on right. Server Time
10 Aug 2024 01:22:25 EDT (-0400)
  Re: Black on left and white on right.  
From: Greg M  Johnson
Date: 6 Apr 2000 08:57:53
Message: <38EC88CB.E14C48E0@my-dejanews.com>
YES! how simple!  I was incorrectly thinking that gradient x had to anchor
itself off the leftmost edge of the object, and hence all my confusion.

Mark Wagner wrote:

> Try this:
> pigment
>
>     gradient x
>     pigment_map{
>         [0       Black]
>         [0.5       Black]
>         [0.5     White]
>         [1       White]
>     }
>     translate x*-0.5 /* Center the map */
>     scale <10000,1,1> /* Make this as large as you want */
> }
>
> /* Mark */


Post a reply to this message

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