MCPcopy Create free account
hub / github.com/Rangi42/polished-map / hue_mono

Method hue_mono

src/colors.cpp:116–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116uchar Color::hue_mono(Hue h) {
117 return hue_monos[(int)h];
118}
119
120Hue Color::mono_hue(uchar c) {
121 return mono_hues[c / (0x100 / NUM_HUES)]; // [0, 255] -> [0, 3]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected