MCPcopy Create free account
hub / github.com/BruceDevices/firmware / getComplementaryColor2

Function getComplementaryColor2

src/core/display.cpp:1532–1537  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1530** Description: Get simple complementary color in RGB565 format
1531***************************************************************************************/
1532uint16_t getComplementaryColor2(uint16_t color) {
1533 int r = 31 - ((color >> 11) & 0x1F);
1534 int g = 63 - ((color >> 5) & 0x3F);
1535 int b = 31 - (color & 0x1F);
1536 return (r << 11) | (g << 5) | b;
1537}
1538/***************************************************************************************
1539** Function name: getComplementaryColor
1540** Description: Get complementary color in RGB565 format

Callers 7

netcutScanDevicesFunction · 0.85
rf_brute_startFunction · 0.85
rf_listenFunction · 0.85
setupMethod · 0.85
displayTextLineFunction · 0.85
handleDeleteFunction · 0.85
generalKeyboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected