i like the reduced color set
This commit is contained in:
parent
9e4e27f2eb
commit
4f74794b54
1 changed files with 6 additions and 4 deletions
|
@ -42,10 +42,12 @@ const char* FG_ESCAPE = "\x1b[38;5;";
|
||||||
const char* BG_ESCAPE = "\x1b[48;5;";
|
const char* BG_ESCAPE = "\x1b[48;5;";
|
||||||
const char* CLEAR = "\x1b[0m";
|
const char* CLEAR = "\x1b[0m";
|
||||||
|
|
||||||
|
const int TONE_MAX = 231;
|
||||||
|
const int TONE_MIN = 17;
|
||||||
// Color Tone:
|
// Color Tone:
|
||||||
// We set it up here so others can use it.
|
// We set it up here so others can use it.
|
||||||
// 0 is black, so we'll steer from that.
|
// 0 is black, so we'll steer from that.
|
||||||
int tone = 1;
|
int tone = 17;
|
||||||
|
|
||||||
#ifdef HAVE_STATE
|
#ifdef HAVE_STATE
|
||||||
const char* file = "/tmp/lolcat.state";
|
const char* file = "/tmp/lolcat.state";
|
||||||
|
@ -159,10 +161,10 @@ int main()
|
||||||
else
|
else
|
||||||
tone--;
|
tone--;
|
||||||
|
|
||||||
if (tone == 255)
|
if (tone == TONE_MAX)
|
||||||
increasing = 0;
|
increasing = 0;
|
||||||
else if (tone == 1)
|
else if (tone == TONE_MIN)
|
||||||
increasing = 1;
|
increasing = TONE_MIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_escape_clear();
|
set_escape_clear();
|
||||||
|
|
Loading…
Reference in a new issue