MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / Dark1

Function Dark1

jni/stasm/eyedet.cpp:680–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678#if TRACE_IMAGES
679
680static unsigned Dark1(unsigned color, double scale)
681{
682 const unsigned Red = unsigned(scale * ((color & 0xff0000) >> 16));
683 const unsigned Green = unsigned(scale * ((color & 0x00ff00) >> 8));
684 const unsigned Blue = unsigned(scale * ((color & 0x0000ff) >> 0));
685 return
686 ((Red << 16) & 0xff0000) |
687 ((Green << 8) & 0x00ff00) |
688 ((Blue << 0) & 0x0000ff);
689}
690
691static unsigned Dark(unsigned color) // return a dark version of color
692{

Callers 2

DarkFunction · 0.85
VeryDarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected