<?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>
<meta name='titlecontent='PixelTextureComponentExamples.x3d'/>
<meta name='descriptioncontent='This example shows the five PixelTexture components, with 0 to 4 components each, shown in Table 5-18.'/>
<meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
<meta name='createdcontent='25 August 2008'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent=' https://X3dGraphics.com '/>
<meta name='referencecontent='X3D for Web Authors, Table 5.18'/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='rightscontent='Copyright (c) 2006, Daly Realism and Don Brutzman'/>
<meta name='subjectcontent=' X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com '/>
<meta name='identifiercontent=' https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/PixelTextureComponentExamples.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<WorldInfo title='PixelTextureComponentExamples.x3d'/>
<Background skyColor='0.1 0.1 0.4'/>
<Viewpoint description='Table 5.18 SFImage component examplesposition='0 0 14'/>
<Transform translation='-6 0 0'>
<Shape>
<Appearance>
<PixelTexture DEF='ZeroComponents'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"0"'>
<FontStyle DEF='CenterJustifyjustify='"MIDDLE" "MIDDLE"'/>
</Text>
<Appearance DEF='TextMaterial'>
<Material diffuseColor='1 1 1'/>
</Appearance>
</Shape>
</Transform>
</Transform>
<Transform translation='-3 0 0'>
<Shape>
<Appearance>
<PixelTexture DEF='OneComponentimage='1 2 1 0xFF 0x00'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"1"'>
<FontStyle USE='CenterJustify'/>
</Text>
<Appearance USE='TextMaterial'/>
</Shape>
</Transform>
</Transform>
<Transform>
<Shape>
<Appearance>
<PixelTexture DEF='TwoComponentsimage='2 1 2 0xCCFF 0x2277'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"2"'>
<FontStyle USE='CenterJustify'/>
</Text>
<Appearance USE='TextMaterial'/>
</Shape>
</Transform>
</Transform>
<Transform translation='3 0 0'>
<Shape>
<Appearance>
<!-- note 0x000000 = 0 -->
<PixelTexture DEF='ThreeComponentsimage='2 4 3 0xFF0000 0xFF00 0x000000 0 0 0 0xFFFFFF 0xFFFF00'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"3"'>
<FontStyle USE='CenterJustify'/>
</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='FourComponentsimage='3 2 4 0xFF0000FF 0x00FF00FF 0x0000FFFF 0xFF00007F 0x00FF007F 0x0000FF7F'/>
</Appearance>
<Box/>
</Shape>
<Transform translation='0 -2 0'>
<Shape>
<Text string='"4"'>
<FontStyle USE='CenterJustify'/>
</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>
<!--

Index for DEF nodes : CenterJustify, FourComponents, OneComponent, TextMaterial, ThreeComponents, TwoComponents, ZeroComponents

Index for Viewpoint image : Viewpoint_1
-->

<!-- 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)
-->

<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->