enlever le hasard

This commit is contained in:
2022-08-21 09:30:06 +02:00
parent 6d161b3804
commit 0bf16e3ab5
17 changed files with 161 additions and 174 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ function DrawBlock($the_block, $vImage, $parametres)
//if (($x2 - $x1) < ($width*0.015)) break;
//if (($y2 - $y1) < ($height*0.015)) break;
$factor=rand(0,100);
$factor=$the_block->nonce % 100;
// Je triche: les petits rectangle sont blancs
if (($x2 - $x1) < 6) $factor=90;
if (($y2 - $y1) < 6) $factor=90;