From 4f74794b54cbc8d9e39e2c5a94baf93253d80444 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 15 Nov 2011 08:36:18 -0500 Subject: [PATCH] i like the reduced color set --- lolcat/lolcat.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lolcat/lolcat.c b/lolcat/lolcat.c index aeb2743..23695a3 100644 --- a/lolcat/lolcat.c +++ b/lolcat/lolcat.c @@ -42,10 +42,12 @@ const char* FG_ESCAPE = "\x1b[38;5;"; const char* BG_ESCAPE = "\x1b[48;5;"; const char* CLEAR = "\x1b[0m"; +const int TONE_MAX = 231; +const int TONE_MIN = 17; // Color Tone: // We set it up here so others can use it. // 0 is black, so we'll steer from that. -int tone = 1; +int tone = 17; #ifdef HAVE_STATE const char* file = "/tmp/lolcat.state"; @@ -159,10 +161,10 @@ int main() else tone--; - if (tone == 255) + if (tone == TONE_MAX) increasing = 0; - else if (tone == 1) - increasing = 1; + else if (tone == TONE_MIN) + increasing = TONE_MIN; } set_escape_clear();