<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
https://www.web3d.org/specifications/x3d-3.3.xsd
'>
<head>
</head>
<!--
-->
<Scene>
<WorldInfo title='TextStringPrototype.x3d'/>
<ProtoDeclare name='TextString'>
<ProtoInterface>
<field name='offset' type='SFVec3f' value='0 0 0' accessType='inputOutput'/>
<field name='string' type='MFString' accessType='inputOutput'/>
<field name='size' type='SFFloat' value='1.0' accessType='initializeOnly'/>
<field name='color' type='SFColor' value='0.2 0.6 1' accessType='inputOutput'/>
<field name='justify' type='MFString' value='"MIDDLE" "MIDDLE"' accessType='initializeOnly'/>
<field name='style' type='SFString' value='PLAIN' accessType='initializeOnly'/>
<field name='family' type='MFString' value='"SANS" "SERIF"' accessType='initializeOnly'/>
</ProtoInterface>
<ProtoBody>
<Transform>
<IS>
<connect nodeField='translation' protoField='offset'/>
</IS>
<Shape>
<Appearance>
<Material>
<IS>
<connect nodeField='diffuseColor' protoField='color'/>
</IS>
</Material>
</Appearance>
<Text>
<IS>
<connect nodeField='string' protoField='string'/>
</IS>
<FontStyle>
<IS>
<connect nodeField='family' protoField='family'/>
<connect nodeField='justify' protoField='justify'/>
<connect nodeField='size' protoField='size'/>
<connect nodeField='style' protoField='style'/>
</IS>
</FontStyle>
</Text>
</Shape>
</Transform>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='TextString' DEF='MyTextStringInstance'>
<fieldValue name='color' value='0.3 0.7 1'/>
<fieldValue name='string' value='"This example TextString node" "creates a prototype instance" "that combines functionality" "of Text and FontStyle nodes"'/>
<fieldValue name='size' value='0.8'/>
<fieldValue name='style' value='BOLD'/>
</ProtoInstance>
</Scene>
</X3D>
<!--
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototypeIndex.html
-->
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
<Prototype
name='ProtoName'>
<field
name='fieldName'/> </Prototype>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints.
-->