MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / DefaultColorThemeJet

Method DefaultColorThemeJet

src/visual/ColorTheme.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73DefaultColorThemeJet::DefaultColorThemeJet()
74{
75 /* This is the original DefaultColorTheme:
76 waterfallGradient.addColor(GradientColor(0, 0, 0));
77 waterfallGradient.addColor(GradientColor(0, 0, 1.0));
78 waterfallGradient.addColor(GradientColor(0, 1.0, 0));
79 waterfallGradient.addColor(GradientColor(1.0, 1.0, 0));
80 waterfallGradient.addColor(GradientColor(1.0, 0.2f, 0.0));
81 */
82 name = "DefaultJet";
83 // Original DefaultColorTheme of CubicSDR 0.25:
84 waterfallGradient.clear();
85 waterfallGradient.addColors({ {0, 0, 0}, {0, 0, 1.0}, {0, 1.0, 0}, {1.0, 1.0, 0},{1.0, 0.2f, 0.0}});
86 waterfallGradient.generate(256);
87}
88
89
90RadarColorTheme::RadarColorTheme() {

Callers

nothing calls this directly

Calls 3

addColorsMethod · 0.80
generateMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected