From 2bda00f9fb6f7719bf76bf27a59db0082744fdae Mon Sep 17 00:00:00 2001 From: Lucas Woltmann Date: Mon, 21 Jul 2014 16:42:12 +0200 Subject: [PATCH] now with more green --- analysis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analysis.php b/analysis.php index a652368..b891f29 100755 --- a/analysis.php +++ b/analysis.php @@ -78,7 +78,7 @@ for ($i = 1; $i < 7; $i++) { echo "

" . $question[$i] . "

\n"; - $color = ImageColorAllocate($img, 255, 80+2*$question[$i], 0); + $color = ImageColorAllocate($img, 0, 150*($question[$i]/$maxX) + 50, 0); DrawBar($img, $question[$i], $maxX, $i+1, $maxY, $question[$i], $color); } @@ -138,7 +138,7 @@ for ($i = 0; $i < 6; $i++) { echo "

" . $tutor[$i] . "

\n"; - $color = ImageColorAllocate($img, 255, 80+2*$tutor[$i], 0); + $color = ImageColorAllocate($img, 0, 150*($tutor[$i]/$maxX) + 50, 0); DrawBar($img, $tutor[$i], $maxX, $i+2, $maxY, $tutor[$i], $color); }