Announcement

Collapse
No announcement yet.

RGB color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RGB color

    I am trying to change the colors in an efs and it seems I can't define my color choice in RGB format by simply adding
    RGB(60,179,113); after Color. in the following line

    addBand(200, PS_DASH, 2,Color.green);

    I want to use sea green but that choice isn't available so I'd like to use it's RGB values of 60,179,113.

    Can someone please show me an example of how to do this?

    Brian





    function preMain() {
    addBand(200, PS_DASH, 2,Color.green);
    addBand(100, PS_SOLID, 1, Color.olive);
    addBand(0, PS_SOLID, 1, Color.red);
    addBand(-100, PS_SOLID, 1, Color.olive);
    addBand(-200, PS_DASH, 2, Color.green);
    setDefaultBarFgColor(Color.red, 0);
    setDefaultBarFgColor(Color.white, 1);
    setDefaultBarThickness(2,0);
    setDefaultBarThickness(1,1);

  • #2
    Brian
    Instead of Color.green type Color.RGB(60,179,113)
    Alex
    Last edited by ACM; 04-06-2003, 02:30 PM.

    Comment


    • #3
      DOH !!! I just realized I was missing the 2nd ) at the end of the line.
      Thanks Alex, seeing it in text makes it obvious now.
      I guess that missing hour of sleep last nite is catching up with me.

      Brian

      Comment

      Working...
      X