Color

Example from: The Annotated VRML 2.0 Reference Manual (but modified a bit...)

#VRML V2.0 utf8 
Transform { 
   translation -3 0 0 
   children Shape { 
      appearance Appearance { }
      geometry IndexedFaceSet { 
	 coord DEF PNTS Coordinate { 
	    point [ 1 0 1, 1 0 -1, -1 0 -1, -1 0 1, 0 2 0 ] 
	 } 
	 coordIndex [ 0 1 4 -1 1 2 4 -1 2 3 4 -1 3 0 4 ] 
	 color Color { color [ 1 0 0, 0 1 0, 0 0 1 ] } 
	 colorIndex [ 0 1 2 -1 2 1 0 -1 1 0 2 -1 2 0 1 ] 
      } 
   } 
} 

Transform { 
   children Shape { 
      appearance Appearance { }
      geometry IndexedFaceSet {
	 coord USE PNTS
	 coordIndex [ 0 1 4 -1 1 2 4 -1 2 3 4 -1 3 0 4 ] 
	 color Color { color [ 1 0 0, 0 1 0, 0 0 1, 1 0 1, 0 1 1 ]} 
      } 
   } 
} 
Transform { 
   translation 3 0 0 
   children Shape { 
      appearance Appearance { }
      geometry IndexedFaceSet { 
	 coord USE PNTS
	 coordIndex [ 0 1 4 -1 1 2 4 -1 2 3 4 -1 3 0 4 ] 
	 color Color { color [ 1 0 0, 0 1 0, 0 0 1 ] } 
	 colorIndex [ 0, 1, 0, 2 ]
	 colorPerVertex FALSE 
      } 
   } 
} 

NavigationInfo { type "EXAMINE" }
Viewpoint { position 0 1 8 }
Background { skyColor 1 1 1 }  



mrl