5) $coef = 0.3; if ($c > 7) $coef = 0.8; if ($c > 9) $coef = 1.2; foreach($bornes as $b) { // 1er 1/2 cercle $aCoords = array(); $x0 = $xc; $x1 = $xc; for($i=$b[0];$i<$b[1];$i++) { $valeur = hexdec($transaction['hash'][$i%TX_HASH_LEN]) - 8; $r = $r0+($valeur*$coef); $xi = $xc + $r*cos(deg2rad($i)); $yi = $yc + $r*sin(deg2rad($i)); $aCoords[$xi] = $yi; if ($xi < $x0) $x0 = $xi; if ($xi > $x1) $x1 = $xi; } if ($oCurve) { $oCurve->setInitCoords($aCoords); $r = $oCurve->processCoords(); if ($r) { $curveGraph = new Plot($r); $curveGraph->drawLine($vImage, $vColor, $x0, $x1); } } } } } ?>