** Function name: getComplementaryColor ** Description: Get simple complementary color in RGB565 format ***************************************************************************************/
| 1356 | ** Description: Get simple complementary color in RGB565 format |
| 1357 | ***************************************************************************************/ |
| 1358 | uint16_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 | } |
no outgoing calls
no test coverage detected