<?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='PixelTextureComponentExamples.x3d'/>
<Background skyColor='0.1 0.1 0.4'/>
<Viewpoint description='Table 5.18 SFImage component examples' position='0 0 14'/>
<Transform translation='-6 0 0'>
<Shape>
<Appearance>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"0"'>
</Text>
<Appearance DEF='TextMaterial'>
<Material diffuseColor='1 1 1'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Transform translation='-3 0 0'>
<Shape>
<Appearance>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"1"'>
</Text>
<Appearance USE='
TextMaterial'/>
</Shape>
</Transform>
</Transform>
<Transform>
<Shape>
<Appearance>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"2"'>
</Text>
<Appearance USE='
TextMaterial'/>
</Shape>
</Transform>
</Transform>
<Transform translation='3 0 0'>
<Shape>
<Appearance>
<!-- note 0x000000 = 0 -->
<PixelTexture DEF='ThreeComponents' image='2 4 3 0xFF0000 0xFF00 0x000000 0 0 0 0xFFFFFF 0xFFFF00'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"3"'>
</Text>
<Appearance USE='
TextMaterial'/>
</Shape>
</Transform>
</Transform>
<Transform translation='6 0 0'>
<Shape>
<Appearance>
<!-- Erroneous value in book: 1 0 0 255, 0 1 0 255, 0 0 1 255, 1 0 0 127, 0 1 0 127, 0 0 1 127 -->
<PixelTexture DEF='FourComponents' image='3 2 4 0xFF0000FF 0x00FF00FF 0x0000FFFF 0xFF00007F 0x00FF007F 0x0000FF7F'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"4"'>
</Text>
<Appearance USE='
TextMaterial'/>
</Shape>
</Transform>
</Transform>
<!-- Background from PixelTextureBW.x3d -->
<Transform translation='0 6 -2'>
<Shape>
<Appearance>
<PixelTexture image='8 8 1 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0x00 0xcc 0x00 0xcc 0x00 0xcc 0x00 0xcc'/>
</Appearance>
<Box size='16 16 .1'/>
</Shape>
</Transform>
</Scene>
</X3D>
<!--
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/PixelTextureComponentExamplesIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/PixelTextureComponentExamples.x3d
-->
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->