Hi Vitaly,
The colors can be configured using ColorAxis.setColorGradient. For example, (in C#/Java);
//from red 0xff0000 to dark blue 0x000088
int[] colors = {0xff0000, 0x000088};
ContourLayer layer = c.addContourLayer(..........);
layer.colorAxis().setColorGradient(false, colors);
You can set more color stops along the color gradient if you like:
//from red, to cyan, to dark blue
int[] colors = {0xff0000, 0x6699ff, 0x000088};
layer.colorAxis().setColorGradient(false, colors);
Hope this can help.
Regards
Peter Kwan |