{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"4.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-4.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"ColorInterpolatorExample.x3d"
          },
          {
            "@name":"description",
            "@content":"X3D encodings example: ColorInterpolator demonstration modifies Material color."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman and Joe Williams"
          },
          {
            "@name":"created",
            "@content":"1 June 2002"
          },
          {
            "@name":"modified",
            "@content":"28 September 2025"
          },
          {
            "@name":"specificationSection",
            "@content":"X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.12 Colour interpolator"
          },
          {
            "@name":"specificationUrl",
            "@content":"https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19776-1v4.0-CD/Part01/examples.html#ColourInterpolator"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/ColorInterpolatorExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"28 September 2025"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"ColorInterpolatorExample.x3d"
            }
          },
          { "ColorInterpolator":
            {
              "@DEF":"myColor",
              "@key":[0.0,0.333,0.666,1.0],
              "@keyValue":[1,0,0,0,1,0,0,0,1,1,0,0]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"myClock",
              "@cycleInterval":10.0,
              "@loop":true
            }
          },
          { "Shape":
            {
              "-geometry":
                { "Sphere":
                  {
                  }
                },
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "Material":
                        {
                          "@DEF":"myMaterial"
                        }
                      }
                  }
                }
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"myClock",
              "@toField":"set_fraction",
              "@toNode":"myColor"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"myColor",
              "@toField":"diffuseColor",
              "@toNode":"myMaterial"
            }
          }
        ]
    }
  }
}