86

Controlling appearance
ColoringAttributes Example Code

  • Set the intrinsic color and shading model
  • Appearance app = new Appearance( );
    ColoringAttributes ca = new ColoringAttributes( );
    ca.setColor( 1.0f, 1.0f, 0.0f );
    ca.setShadeModel( ColoringAttributes.SHADE_GOURAUD );
    app.setColoringAttributes( ca );