change Mondrian color

This commit is contained in:
2024-02-14 09:27:32 +01:00
parent 4d4720a28c
commit 05fb774f5d
4 changed files with 137 additions and 4 deletions
+4 -4
View File
@@ -25,10 +25,10 @@ function DrawBlock($the_block, $vImage, $parametres)
imagefilledrectangle($vImage, $x, $y, $x+$width, $y+$height, $vFgColor);
$couleurs = array();
$couleurs[0] = imagecolorallocate($vImage, 255, 255, 255);
$couleurs[1] = imagecolorallocate($vImage, 255, 0, 0);
$couleurs[2] = imagecolorallocate($vImage, 0, 0, 255);
$couleurs[3] = imagecolorallocate($vImage, 255, 255, 0);
$couleurs[0] = imagecolorallocate($vImage, 245, 245, 240); // 255,255,255 Blanc
$couleurs[1] = imagecolorallocate($vImage, 155, 30, 10); // Rouge
$couleurs[2] = imagecolorallocate($vImage, 12, 102, 153); // Behr Mondrian Blue #0c6699
$couleurs[3] = imagecolorallocate($vImage, 240, 200, 5); // Jaune
$full_area = $width * $height;
if ($full_area == 0) $full_area = 1;