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:23:38 EDT (-0400)
  Re: Black on left and white on right.  
From: Mark Wagner
Date: 6 Apr 2000 01:53:55
Message: <38ec2673@news.povray.org>
Greg M. Johnson <"gregj;-)56590""@aol.c;-)om> wrote in message
<38ebfafb$1@news.povray.org>...
>How do I set up something that is black on the left and white on the
>right? Before you answer, I want the demarcation at x=0, and the max &
>min extent in x can vary wildly, and it's a BLOB!
>The following solution won't work, because it is reflected over the x=0
>plane.


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.