ParallelGraphics  
Home  »  Developer Zone  »  Products  »  Cortona3D Viewer  »  VRML Extensions  »  GradientBackground
GradientBackground

The GradientBackground allows for creating horizontal or vertical gradient background that is static relatively to the camera movements.

EXTERNPROTO GradientBackground [ 
  eventIn		SFBool		set_bind
  exposedField		MFColor		color		0,0,0
  exposedField		MFFloat		colorPosition	0
  exposedField		SFString	type		"LINEAR-VERTICAL"   
  eventOut		SFBool		isBound
]
[
  "urn:inet:parallelgraphics.com:cortona:GradientBackground"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
  #GradientBackground"
]

The set_bind field works in the same way as the set_bind field of the Background node.
The color field specifies two or more colors of the gradient.
The colorPosition field specifies the positions of colors listed in the color field. If only two colors are used to create the gradient, the colorPosition field is not necessary. If the value of the colorPosition field is not specified, the colors are arranged uniformly.
The type field specifies whether the gradient is horizontal or vertical. The possible values are "LINEAR-VERTICAL" (default) and "LINEAR-HORIZONTAL".
The isBound field works in the same way as the isBound field of the Background node.


Example

scene size: 777bytes
archive size: 917bytes
view online download




Last updated: Sun, 12 Feb 2012
© 2000-2008 ParallelGraphics. All rights reserved.