mirror of
https://github.com/fsr/eseeva
synced 2024-11-15 08:53:11 +01:00
better colors on the analysis page
This commit is contained in:
parent
de0b93b4c8
commit
79774bf740
|
@ -78,7 +78,8 @@
|
||||||
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, 0, 150*($question[$i]/$maxX) + 50, 0);
|
$green = 150*($question[$i]/$maxX) + 40;
|
||||||
|
$color = ImageColorAllocate($img, 0.57 * $green, $green, 0.45 * $green);
|
||||||
DrawBar($img, $question[$i], $maxX, $i+1, $maxY, $question[$i], $color);
|
DrawBar($img, $question[$i], $maxX, $i+1, $maxY, $question[$i], $color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +139,8 @@
|
||||||
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, 0, 150*($tutor[$i]/$maxX) + 50, 0);
|
$green = 150*($tutor[$i]/$maxX) + 40;
|
||||||
|
$color = ImageColorAllocate($img, 0.54 * $green, $green, 0.45 * $green);
|
||||||
DrawBar($img, $tutor[$i], $maxX, $i+2, $maxY, $tutor[$i], $color);
|
DrawBar($img, $tutor[$i], $maxX, $i+2, $maxY, $tutor[$i], $color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue