@@ 318-320 (lines=3) @@ | ||
315 | $w2 = 0; |
|
316 | ||
317 | for ($x = 0; $x < $this->width; $x += (int)$nextline) { |
|
318 | if ($x < $this->width) { |
|
319 | imageline($this->img, $x + $w1, 0, $x + $w2, $this->height - 1, rand($color1, $color2)); |
|
320 | } |
|
321 | if ($x < $this->height) { |
|
322 | imageline($this->img, 0, $x - $w2, $this->width - 1, $x - $w1, rand($color1, $color2)); |
|
323 | } |
|
@@ 321-323 (lines=3) @@ | ||
318 | if ($x < $this->width) { |
|
319 | imageline($this->img, $x + $w1, 0, $x + $w2, $this->height - 1, rand($color1, $color2)); |
|
320 | } |
|
321 | if ($x < $this->height) { |
|
322 | imageline($this->img, 0, $x - $w2, $this->width - 1, $x - $w1, rand($color1, $color2)); |
|
323 | } |
|
324 | if (function_exists('imagettftext') && (count($this->fonts) > 0)) { |
|
325 | $nextline += rand(-5, 7); |
|
326 | if ($nextline < 1) { |