From d311e8a06114d82a8ef9d8cee1903dd5cb4ad844 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Sun, 12 Oct 2008 22:58:40 -0400 Subject: [PATCH] Make clients graphics use lighter random colors. --- client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client.c b/client.c index 934c7cd..4654de0 100644 --- a/client.c +++ b/client.c @@ -70,10 +70,10 @@ static void set_random_color(cairo_t *cr) { cairo_set_source_rgba(cr, - (random() % 100) / 99.0, - (random() % 100) / 99.0, - (random() % 100) / 99.0, - (random() % 100) / 99.0); + 0.5 + (random() % 50) / 49.0, + 0.5 + (random() % 50) / 49.0, + 0.5 + (random() % 50) / 49.0, + 0.5 + (random() % 100) / 99.0); } -- 2.7.4