<head>
</head>
<!--
-->
<Scene>
<WorldInfo title='KelpExamplesNoBase.x3d'/>
<ExternProtoDeclare name='Kelp' appinfo='Kelp strands and bulbs with no base'
url='
"KelpPrototype.x3d#Kelp" "https://x3dgraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/KelpPrototype.x3d#Kelp" "KelpPrototype.wrl#Kelp" "https://x3dgraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/KelpPrototype.wrl#Kelp" '>
<field name='frontBladeSize' type='SFVec3f' accessType='inputOutput'/>
<field name='rearSideBladeHeight' type='SFVec3f' accessType='inputOutput'/>
<field name='frontSideBladeHeight' type='SFVec3f' accessType='inputOutput'/>
<field name='rightBladeSize' type='SFVec3f' accessType='inputOutput'/>
<field name='rightSideBladeHeight' type='SFVec3f' accessType='inputOutput'/>
<field name='leftBladeSize' type='SFVec3f' accessType='inputOutput'/>
<field name='rearBladeSize' type='SFVec3f' accessType='inputOutput'/>
<field name='leftSideBladeHeight' type='SFVec3f' accessType='inputOutput'/>
</ExternProtoDeclare>
<Group>
<!-- ROUTE information for KelpTransform0 node:
[from KelpPath0.value_changed to set_rotation
]
-->
<Transform DEF='KelpTransform0' scale='0.3 0.3 0.3'>
<ProtoInstance name='Kelp'/>
</Transform>
<!-- ROUTE information for KelpTransform1 node:
[from KelpPath1.value_changed to set_rotation
]
-->
<Transform DEF='KelpTransform1' rotation='0.0 1.0 0.0 5.5' scale='0.29 0.29 0.29' translation='-0.5 0.0 0.0'>
<ProtoInstance name='Kelp'>
<fieldValue name='rearSideBladeHeight' value='0.0 15.0 0.0'/>
<fieldValue name='frontBladeSize' value='0.4 0.4 0.4'/>
<fieldValue name='frontSideBladeHeight' value='0.0 23.0 0.0'/>
<fieldValue name='rightBladeSize' value='0.4 0.4 0.4'/>
<fieldValue name='rightSideBladeHeight' value='0.0 20.0 0.0'/>
<fieldValue name='leftBladeSize' value='0.7 0.7 0.7'/>
<fieldValue name='rearBladeSize' value='0.7 0.7 0.7'/>
<fieldValue name='leftSideBladeHeight' value='0.0 6.0 0.0'/>
</ProtoInstance>
</Transform>
<!-- ROUTE information for KelpTransform2 node:
[from KelpPath2.value_changed to set_rotation
]
-->
<Transform DEF='KelpTransform2' scale='0.3 0.3 0.3' translation='0.5 0.0 0.5'>
<ProtoInstance name='Kelp'>
<fieldValue name='rearSideBladeHeight' value='0.0 18.0 0.0'/>
<fieldValue name='frontBladeSize' value='0.7 0.7 0.7'/>
<fieldValue name='frontSideBladeHeight' value='0.0 8.0 0.0'/>
<fieldValue name='rightBladeSize' value='0.7 0.7 0.7'/>
<fieldValue name='rightSideBladeHeight' value='0.0 16.0 0.0'/>
<fieldValue name='leftBladeSize' value='0.7 0.7 0.7'/>
<fieldValue name='rearBladeSize' value='0.4 0.4 0.4'/>
<fieldValue name='leftSideBladeHeight' value='0.0 13.0 0.0'/>
</ProtoInstance>
</Transform>
</Group>
<Group>
<![CDATA[
ecmascript:
function set_fraction (value, timestamp)
{
delay = 0.25;
delayedValue = value + (delay/5.5); // delay/interval, seconds
if (delayedValue > 1) delayedValue--;
value_changed = delayedValue;
// Browser.print ('TimeDelay1 value=' + value + ', value_changed=' + value_changed);
}
]]>
<![CDATA[
ecmascript:
function set_fraction (value, timestamp)
{
delay = 0.5;
delayedValue = value + (delay/5.5); // delay/interval, seconds
if (delayedValue > 1) delayedValue--;
value_changed = delayedValue;
// Browser.print ('TimeDelay2 value=' + value + ', value_changed=' + value_changed);
}
]]>
</Scene>