//définition des lignes noires
$nb_lignes = mt_rand(3,7);
{
ImageLine($image, mt_rand(0,40), mt_rand(0,100), mt_rand(280, 320), mt_rand(0,100), $noir);
//définition des lignes colorées.
$nb_lignes = mt_rand(3,7);
{
ImageLine($image, mt_rand(0,40), mt_rand(0,100), mt_rand(280,320), mt_rand(0,100), $colors[mt_rand(0,$Tcolors-1)]);
//définition des ellipses
$nb_ellipses = mt_rand(1,6);
$_SESSION['captcha'] .= $lettre; //stockage
$taille = mt_rand(35,45); //taille
$angle = mt_rand(-35,35); //angle
$y = mt_rand(55, 60); //ordonnée
$police = $polices[mt_rand(0, $Tpolices-1)]; //police :p