<head>
</head>
<!--
-->
<Scene>
<![CDATA[
ecmascript:
function whichBackground (inputValue)
{
if (currentBackground == inputValue)
return; // avoid rapid Background binding (probably overcautious)
currentBackground = inputValue; // remember state
Browser.println ("currentBackground=" + currentBackground);
if (inputValue == 0) bind0 = true; // send event
else if (inputValue == 1) bind1 = true; // send event
else if (inputValue == 2) bind2 = true; // send event
else if (inputValue == 3) bind3 = true; // send event
}
]]>
</Script>
<ROUTE fromNode='BackgroundSequencer' fromField='value_changed' toNode='SelectorScript' toField='whichBackground'/>
<!-- ROUTE information for SunRiseSky node:
[from SelectorScript.bind0 to set_bind
]
-->
<Background DEF='SunRiseSky' groundAngle='0.75 1.2 1.25 1.26 1.5 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0 0.5 0 0 0.2 0 0.231373 0.380392' skyAngle='0.5 0.7 1.35 1.45 1.57' skyColor='0 0.035 0.34 0 0.015 0.44 0 0.05 0.5 0 0.1 0.6 0.44 0.8 1 1 1 0.7'/>
<!-- ROUTE information for HighNoonSky node:
[from SelectorScript.bind1 to set_bind
]
-->
<Background DEF='HighNoonSky' groundAngle='0.75 1.2 1.25 1.26 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0.2 0.75 0 0.1 0.5' skyAngle='0.05 0.07 1.57' skyColor='1 1 0.2 1 1 0 0.36 0.63 1 0 0.4 1'/>
<!-- ROUTE information for SunsetSky node:
[from SelectorScript.bind2 to set_bind
]
-->
<Background DEF='SunsetSky' groundAngle='0.75 1.2 1.25 1.26 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0 0.5 0 0 0.2' skyAngle='0.5 0.7 1.2 1.4 1.57' skyColor='0 0 0.38 0 0 0.68 0.5 0.2 1 0.5 0.2 1 1 0.3 0 1 0.2 0.8'/>
<!-- ROUTE information for NightSky node:
[from SelectorScript.bind3 to set_bind
]
-->
<Background DEF='NightSky' groundAngle='0.75 1.2 1.25 1.26 1.57' groundColor='0.133333 0.419608 0 0.36 0.1 0 1 0.74 0.4 1 0.74 0.4 0 0 0.5 0 0 0.2' skyAngle='0.03 0.05 1.57' skyColor='1 1 1 0.8 0.8 0.8 0.1 0.1 0.1 0 0 0'/>
<ROUTE fromNode='SelectorScript' fromField='bind0' toNode='SunRiseSky' toField='set_bind'/>
<ROUTE fromNode='SelectorScript' fromField='bind1' toNode='HighNoonSky' toField='set_bind'/>
<ROUTE fromNode='SelectorScript' fromField='bind2' toNode='SunsetSky' toField='set_bind'/>
<ROUTE fromNode='SelectorScript' fromField='bind3' toNode='NightSky' toField='set_bind'/>
</Scene>