MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / palette

Function palette

src/fe-analysedriveresponse.cc:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117};
118
119static void palette(double value, agg::srgba8* pixel)
120{
121 int index = std::min((int)(value * 256.0), 255);
122 pixel->r = turbo_srgb_bytes[index][0];
123 pixel->g = turbo_srgb_bytes[index][1];
124 pixel->b = turbo_srgb_bytes[index][2];
125 pixel->a = 255;
126}
127
128static void do_in_steps(double c1,
129 double c2,

Callers 1

mainAnalyseDriveResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected