{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"set_skycolor2.x3d"
          },
          {
            "@name":"reference",
            "@content":"http://www.nist.gov/vrml.html"
          },
          {
            "@name":"reference",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/vrml.html"
          },
          {
            "@name":"creator",
            "@content":"http://www.itl.nist.gov/div897/ctg/vrml/members.html"
          },
          {
            "@name":"disclaimer",
            "@content":"This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified."
          },
          {
            "@name":"reference",
            "@content":"Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml"
          },
          {
            "@name":"reference",
            "@content":"Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml"
          },
          {
            "@name":"info",
            "@content":"Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d"
          },
          {
            "@name":"creator",
            "@content":"Michael Kass NIST"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"translated",
            "@content":"21 January 2001"
          },
          {
            "@name":"modified",
            "@content":"28 August 2023"
          },
          {
            "@name":"description",
            "@content":"Test browser to assign different skycolors to a set of angles in the skyAngle field. Four Background node are defined in the local coordinate system. All of them belong to the same grouping node (Group node). The test is started by clicking on the text as indicated when the test is first loaded. After clicking on the appropriate color name, the test should generate a sky color of variations of the same color (the one clicked on). This is done by specifying a number of different skycolor angles. There are five colors and four angles defined. No ground colors are defined at all."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Background/set_skycolor2.x3d"
          },
          {
            "@name":"generator",
            "@content":"Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"25 March 2026"
          },
          {
            "@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":"set_skycolor2.x3d"
            }
          },
          { "NavigationInfo":
            {
              "@headlight":false,
              "@type":["EXAMINE","WALK","FLY","ANY"]
            }
          },
          { "Group":
            {
              "-children":[
                { "Viewpoint":
                  {
                    "@DEF":"the-view",
                    "@description":"Front View",
                    "@position":[0,0,20]
                  }
                }
              ]
            }
          },
          { "Background":
            {
              "@DEF":"grays",
              "@groundColor":[0,0,0],
              "@skyAngle":[1.35,1.45,1.52,1.57],
              "@skyColor":[0.41176,0.41176,0.41176,0.74509,0.74509,0.74509,0.8,0.8,0.8,0.82745,0.82745,0.82745,1,1,1]
            }
          },
          { "Background":
            {
              "@DEF":"blues",
              "@groundColor":[0,0,0],
              "@skyAngle":[1.35,1.45,1.52,1.57],
              "@skyColor":[0,0,1,0.11764,0.5747,1,0,0.74901,1,0.52941,0.80784,0.92156,1,1,1]
            }
          },
          { "Background":
            {
              "@DEF":"yellows",
              "@groundColor":[0,0,0],
              "@skyAngle":[1.35,1.45,1.52,1.57],
              "@skyColor":[1,1,0,0.8549,0.64705,0.12549,1,0.84313,0,0.93333,0.86666,0.5098,1,1,1]
            }
          },
          { "Background":
            {
              "@DEF":"oranges",
              "@groundColor":[0,0,0],
              "@skyAngle":[1.35,1.45,1.52,1.57],
              "@skyColor":[0.91372,0.58823,0.47843,1,0.64705,0,1,0.54901,0,1,0.49803,0.31372,1,1,1]
            }
          },
          { "Transform":
            {
              "@translation":[0,0,10],
              "-children":[
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[-5.4,-2,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[0,1,0],
                                      "@emissiveColor":[0,1,0]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["CLICK BELOW TO SELECT SKY COLOR"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@DEF":"the-style",
                                      "@size":29,
                                      "@style":"BOLD"
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[-5.4,-2.7,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"the-appearance",
                                "-material":
                                  { "Material":
                                    {
                                      "@ambientIntensity":1,
                                      "@diffuseColor":[0,0,1],
                                      "@emissiveColor":[0,0,1]
                                    }
                                  }
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Grays"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch1",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[-5.4,-3.4,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"the-appearance"
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Blues"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch2",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[1,-2.7,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"the-appearance"
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Yellows"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch3",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@scale":[0.02,0.02,0.02],
                    "@translation":[1,-3.4,0],
                    "-children":[
                      { "Shape":
                        {
                          "-appearance":
                            { "Appearance":
                              {
                                "@USE":"the-appearance"
                              }
                            },
                          "-geometry":
                            { "Text":
                              {
                                "@string":["Oranges"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@USE":"the-style"
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"the-touch4",
                          "@description":"touch to activate"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Script":
            {
              "@DEF":"color-back1",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"function value_in (the_value)",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "Script":
            {
              "@DEF":"color-back2",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"function value_in (the_value)",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "Script":
            {
              "@DEF":"color-back3",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"function value_in (the_value)",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "Script":
            {
              "@DEF":"color-back4",
              "field": [
                {
                  "@name":"value_in",
                  "@accessType":"inputOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"value_out",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"function value_in (the_value)",
"{",
"\tif (the_value == true)",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"\telse",
"\t{",
"\t\tvalue_out = true;",
"\t}",
"}",
"",
""
]
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch1",
              "@toField":"value_in",
              "@toNode":"color-back1"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch2",
              "@toField":"value_in",
              "@toNode":"color-back2"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch3",
              "@toField":"value_in",
              "@toNode":"color-back3"
            }
          },
          { "ROUTE":
            {
              "@fromField":"isActive",
              "@fromNode":"the-touch4",
              "@toField":"value_in",
              "@toNode":"color-back4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"color-back1",
              "@toField":"set_bind",
              "@toNode":"grays"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"color-back2",
              "@toField":"set_bind",
              "@toNode":"blues"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"color-back3",
              "@toField":"set_bind",
              "@toNode":"yellows"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_out",
              "@fromNode":"color-back4",
              "@toField":"set_bind",
              "@toNode":"oranges"
            }
          }
        ]
    }
  }
}