POV-Ray Insert Menu
mady by Christoph Hormann
http://www.imagico.de/

rainbow

top previous next

// create a rainbow arc
rainbow {                      
  angle 30         // degrees
  width 6          // degrees
  distance 1000
  direction <0,-0.5,1>    
  jitter 0.01
  arc_angle 180    // degrees
  falloff_angle 60 // degrees
  // up <UP>
  color_map {
    [0.000 color rgbf <1.00.51.01.0> ]
    [0.100 color rgbf <1.00.51.00.8> ]
    [0.214 color rgbf <0.50.51.00.8> ]
    [0.328 color rgbf <0.20.21.00.8> ]
    [0.442 color rgbf <0.21.01.00.8> ]
    [0.556 color rgbf <0.21.00.20.8> ]
    [0.670 color rgbf <1.01.00.20.8> ]
    [0.784 color rgbf <1.00.50.20.8> ]
    [0.900 color rgbf <1.00.20.20.8> ]
  }
}