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);
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);
Comment