From 071f31ecc8c15b4cb7adde6ad2d41aa2efc18b9f Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 21 Mar 2006 10:52:24 +0000 Subject: [PATCH] * Changed the cacaplas colours. Yeah, I do what I want. --- src/cacaplas.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cacaplas.c b/src/cacaplas.c index 43fba63..60d5110 100644 --- a/src/cacaplas.c +++ b/src/cacaplas.c @@ -93,9 +93,9 @@ int main (int argc, char **argv) { double z = ((double)i) / 256 * 6 * M_PI; - red[i] = (1.0 + cos(z + r[0] * frame)) / 2 * 0xfff; - green[i] = (1.0 + sin(z + r[1] * frame)) / 2 * 0xfff; - blue[i] = (1.0 + cos(z + r[2] * frame)) / 2 * 0xfff; + red[i] = (1.0 + sin(z + r[1] * frame)) / 2 * 0xfff; + blue[i] = (1.0 + cos(z + r[0] * frame)) / 2 * 0xfff; + green[i] = (1.0 + cos(z + r[2] * frame)) / 2 * 0xfff; } /* Set the palette */