home *** CD-ROM | disk | FTP | other *** search
- This simplest such pattern is the "gradient" pattern. It is specified as
- follows:
- pigment {gradient VECTOR}
- where VECTOR is a vector pointing in the direction that the colors blend.
- For example:
- sphere {
- <0, 1, 2>, 2
- pigment { gradient x } // bands of color
- } // vary as you
-
- This produces a series of smooth bands of color that look like layers of
- color next to each other. Points at x=0 are black. As the X location in-
- creases it smoothly turns to white at x=1. Then it starts over with black
- and gradually turns white at x=2. The pattern reverses for negative values
- of X. Using "gradient y" or "gradient z" makes the colors blend along the
- y or z axis. Any vector may be used but x, y and z are most common.
-