PHP EDASIJÕUDNUD RAAMAT
1
2
3
imagecolorallocate($pilt, 255, 255, 255);
17 //teksti värv
$teksti_varv = imagecolorallocate($pilt, 0, 0, 0);
18 //joonistame suvalised jooned
19 for ($i=1; $i<=40 ; $i++) {
20 $x1 = rand(1,100);
21 $y1 = rand(1,100);
22 $x2 = rand(1,100);
$y2 = rand(1,100);
23 imagesetthickness($pilt, 2);
24 imagedashedline($pilt, $x1, $y1, $x2, $y2, $teksti_varv);
25 }
26 //lisame pildile soovitud parameetrud