MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / color

Method color

libraries/ANSI/ansi.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93void ANSI::color(uint8_t fgcolor, uint8_t bgcolor)
94{
95 if (fgcolor < 16 && bgcolor < 16) {
96 this->colors4(fgcolor, bgcolor);
97 } else {
98 this->color8(fg_normal, fgcolor);
99 this->color8(bg_normal, bgcolor);
100 }
101}
102
103
104uint8_t ANSI::rgb2color(uint8_t r, uint8_t g, uint8_t b) {

Callers

nothing calls this directly

Calls 2

colors4Method · 0.95
color8Method · 0.95

Tested by

no test coverage detected