NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: background color

Hi Omar,

Can we change the background color of the display from
black to another color ?

Try this:

     DisplayRenderer renderer = display.getDisplayRenderer();
     renderer.setBackgroundColor(1.0f, 1.0f, 1.0f); // white
     renderer.setBoxColor(0.0f, 0.0f, 0.0f); // black

-Curtis


  • 2006 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: