MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / getComplementaryColor

Function getComplementaryColor

src/display.cpp:1358–1363  ·  view source on GitHub ↗

** Function name: getComplementaryColor ** Description: Get simple complementary color in RGB565 format ***************************************************************************************/

Source from the content-addressed store, hash-verified

1356** Description: Get simple complementary color in RGB565 format
1357***************************************************************************************/
1358uint16_t getComplementaryColor(uint16_t color) {
1359 int r = 31 - ((color >> 11) & 0x1F);
1360 int g = 63 - ((color >> 5) & 0x3F);
1361 int b = 31 - (color & 0x1F);
1362 return (r << 11) | (g << 5) | b;
1363}

Callers 3

display.hFile · 0.85
handleDeleteFunction · 0.85
generalKeyboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected