3
0
Fork 0
mirror of https://github.com/fsr/eseeva synced 2024-11-15 08:53:11 +01:00

now with more green

This commit is contained in:
Lucas Woltmann 2014-07-21 16:42:12 +02:00
parent 0d5312314c
commit 2bda00f9fb

View file

@ -78,7 +78,7 @@
for ($i = 1; $i < 7; $i++) for ($i = 1; $i < 7; $i++)
{ {
echo " <div class=\"col-2\"><p class=\"lead center\">" . $question[$i] . "</p></div>\n"; echo " <div class=\"col-2\"><p class=\"lead center\">" . $question[$i] . "</p></div>\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); DrawBar($img, $question[$i], $maxX, $i+1, $maxY, $question[$i], $color);
} }
@ -138,7 +138,7 @@
for ($i = 0; $i < 6; $i++) for ($i = 0; $i < 6; $i++)
{ {
echo " <div class=\"col-2\"><p class=\"lead center\">" . $tutor[$i] . "</p></div>\n"; echo " <div class=\"col-2\"><p class=\"lead center\">" . $tutor[$i] . "</p></div>\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); DrawBar($img, $tutor[$i], $maxX, $i+2, $maxY, $tutor[$i], $color);
} }