Colour Interpolator Example


  Transform {
     children [
        DirectionalLight {
           ambientIntensity 0.75
        }
        DEF COLINT ColorInterpolator {
           key [0, 0.33, 0.66, 1]
           keyValue [    1 0 0,
                 0 1 0,
                 0 0 1,
                 1 0 0 ] 
        }
        Transform {
           translation 0 0.5 -10
           children [
              Shape {
                 appearance Appearance {
                    material Material {
                       emissiveColor 1 1 1
                    }
                 }
                 geometry Text {
                    string ["ColorInterpolator"]
                    fontStyle FontStyle {
                       justify "MIDDLE"
                    }
                 }
              }
           ]
        }   
        Transform {
           translation 0 3 -10
           children [
              Shape {
                 appearance Appearance {
                    material DEF COLTGT Material {
                       diffuseColor 1 0 0 
                    }
                 }
                 geometry Sphere {
                 }
              }
           ]
        }
     ]
  }