Bläddra i källkod

prepare to choose method via nonce

master
MEUNIER Thibaud 4 år sedan
förälder
incheckning
a79e986350
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. +2
    -3
      methode2/robot.php

+ 2
- 3
methode2/robot.php Visa fil

@ -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);
// ---

Laddar…
Avbryt
Spara