58 else if(x >= 0.375 && x < 0.625)
60 else if(x >= 0.625 && x < 0.875)
61 return (
int)floor(1.0*255);
75 else if(x >= 0.125 && x < 0.375)
77 else if(x >= 0.375 && x < 0.625)
78 return (
int)floor(1.0*255);
79 else if(x >= 0.625 && x < 0.875)
92 else if(x >= 0.125 && x < 0.375)
93 return (
int)floor(1.0*255);
94 else if(x >= 0.375 && x < 0.625)
106 return (
int)floor(
linearSlope(x, 2.5621, 0.0392)*255);
108 return (
int)floor(1.0*255);
118 else if(x >= 0.375 && x < 0.75)
119 return (
int)floor(
linearSlope(x, 2.6667, -1.0)*255);
121 return (
int)floor(1.0*255);
143 return (
int)floor(
linearSlope(x, 2.7832, -0.6090)*255);
145 return (
int)floor(1.0*255);
155 else if(x >= 0.5781 && x < 0.8125)
156 return (
int)floor(
linearSlope(x, 4.2662, -2.4663)*255);
158 return (
int)floor(1.0*255);
169 return (
int)floor(
linearSlope(x,5.3333,-4.3333)*255);
180 return (
int)floor(
linearSlope(x, 3.5549, -1.9996)*255);
182 return (
int)floor(1.0*255);
192 else if(x >= 0.8438 && x < 0.9531)
193 return (
int)floor(
linearSlope(x, 9.1491, -7.72)*255);
195 return (
int)floor(1.0*255);
206 return (
int)floor(
linearSlope(x,21.3220,-20.3220)*255);
216 else if(x >= 0.375 && x < 0.75)
217 return (
int)floor(
linearSlope(x, 0.8889, -0.0157)*255);
219 return (
int)floor(
linearSlope(x, 1.396, -0.396)*255);
229 else if(x >= 0.375 && x < 0.75)
230 return (
int)floor(
linearSlope(x, 1.2237, -0.1413)*255);
232 return (
int)floor(
linearSlope(x, 0.894, 0.106)*255);
241 return (
int)floor(
linearSlope(x, 1.1712, 0.0039)*255);
242 else if(x >= 0.375 && x < 0.75)
243 return (
int)floor(
linearSlope(x, 0.8889, 0.1098)*255);
245 return (
int)floor(
linearSlope(x, 0.8941, 0.1059)*255);
256 return (
int)floor(1.0*255);
276 return (
int)floor(1.0*255);
303 return (
int)floor(1.0*255);
Static scalar-to-colour lookup helpers (Jet, Hot, Bone, Viridis, Cool, RedBlue, MNE) used by every pl...
2-D display widgets and visualisation helpers (charts, topography, colour maps).
static int hotG(double v)
static int coolR(double v)
static int hotRNeg2(double v)
static double linearSlope(double x, double m, double n)
static int boneR(double v)
static int hotGNeg2(double v)
static int jetR(double v)
static int hotBNeg2(double v)
static int jetB(double v)
static int jetG(double v)
static int hotBNeg1(double v)
static int hotGNeg1(double v)
static int coolB(double v)
static int hotRNeg1(double v)
static int boneB(double v)
static int hotR(double v)
static int hotB(double v)
static int boneG(double v)
static int coolG(double v)