ajout de la méthode Tyler Hobbs

This commit is contained in:
2019-03-10 08:48:30 +01:00
parent ccede092d0
commit 3f4bdf65e0
2 changed files with 221 additions and 6 deletions

View File

@@ -63,16 +63,15 @@ function DrawBlock($the_block, $vImage, $parametres)
$img_h = $height+(2*$y);
// Redessiner entête et pied de page
blockchain::DrawBlockHeaderFooter($the_block, $vImage, $y, $couleur);
imagefilledrectangle($vImage, 0, $y, $width, $y + $height, $parametres['background_color']);
imageline($vImage, 0, 5, 0, $img_h-25, $parametres['font_color']);
imageline($vImage, $width-1, 5, $width-1, $img_h-25, $parametres['font_color']);
$p2 = blockchain::DrawBlockHeaderFooter($the_block, $vImage, $y, $couleur);
$fond=imagecolorallocate($vImage,$fondRGB[0],$fondRGB[1],$fondRGB[2]);
$couleur=imagecolorallocate($vImage,$couleurRGB[0],$couleurRGB[1],$couleurRGB[2]);
//$couleur=imagecolorallocate($vImage,$couleurRGB[0],$couleurRGB[1],$couleurRGB[2]);
// Remplir le fond
imagefilledrectangle($vImage, $x+($marge_x/2), $y+($marge_y/2), $x+$width-+($marge_x/2), $y+$height-+($marge_y/2), $fond);
imagefilledrectangle($vImage, 0, $y, $width, $y + $height, $fond);
imageline($vImage, 0, 5, 0, $img_h-25, $p2[2]);
imageline($vImage, $width-1, 5, $width-1, $img_h-25, $p2[2]);
$vColor = array();
// Dégradé de 192 couleurs entre la couleur de dessin et le blanc