home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 2555 / povhlp / gradient.hlp < prev    next >
Encoding:
Text File  |  1994-07-05  |  835 b   |  17 lines

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