From a79e98635032bbb0b45ab53c1a9897355121f86d Mon Sep 17 00:00:00 2001 From: MEUNIER Thibaud Date: Sat, 13 Nov 2021 07:02:57 +0100 Subject: [PATCH] prepare to choose method via nonce --- methode2/robot.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/methode2/robot.php b/methode2/robot.php index fe2fd2d..b0a78b7 100644 --- a/methode2/robot.php +++ b/methode2/robot.php @@ -38,7 +38,7 @@ $mode=8; if (isset($argv[3])) $mode=intval($argv[3]); // --- -// --- Par défaut mode 8 +// --- Par défaut taille 1 // --- $taille=1; if (isset($argv[4])) $taille=intval($argv[4]); @@ -66,10 +66,9 @@ if ($methode == 'mondrian') $couleur = 9; $width = $marge + ($width*2) + (2*$text_border); $height = $marge + ($height*2); +// création d'une image plus haute pour inclure bandeaux haut et bas $img_w = $width; $img_h = $height+(2*$bandeau); - -// création d'une image plus haute pour inclure bandeaux haut et bas $img = imagecreatetruecolor($img_w, $img_h); // ---