prepare to choose method via nonce

This commit is contained in:
2021-11-13 07:02:57 +01:00
parent 6b7dfbe0fd
commit a79e986350
+2 -3
View File
@@ -38,7 +38,7 @@ $mode=8;
if (isset($argv[3])) $mode=intval($argv[3]); if (isset($argv[3])) $mode=intval($argv[3]);
// --- // ---
// --- Par défaut mode 8 // --- Par défaut taille 1
// --- // ---
$taille=1; $taille=1;
if (isset($argv[4])) $taille=intval($argv[4]); if (isset($argv[4])) $taille=intval($argv[4]);
@@ -66,10 +66,9 @@ if ($methode == 'mondrian') $couleur = 9;
$width = $marge + ($width*2) + (2*$text_border); $width = $marge + ($width*2) + (2*$text_border);
$height = $marge + ($height*2); $height = $marge + ($height*2);
// création d'une image plus haute pour inclure bandeaux haut et bas
$img_w = $width; $img_w = $width;
$img_h = $height+(2*$bandeau); $img_h = $height+(2*$bandeau);
// création d'une image plus haute pour inclure bandeaux haut et bas
$img = imagecreatetruecolor($img_w, $img_h); $img = imagecreatetruecolor($img_w, $img_h);
// --- // ---