Basic HTML version of Foils prepared May 19 99

Foil 51 Controlling Backgrounds

From Java Media Framework API's Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Byeongseob Ki, Scott Klasky, Nancy McCracken


The Background leaf node defines either a solid color or a background image used to fill the window
A Background node is active when its application region intersects the viewer's activation volume
If no Background nodes are active, then the window is cleared to black
Background mountains = new Background();
mountains.setColor( 0.0, 0.5, 1.0 );
mountains.setGeometry( mountainWorld );



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999