@@ 372-374 (lines=3) @@ | ||
369 | $c1['b'] = mt_rand(30, 199); |
|
370 | } while ($c1['b'] == $this->_backgroundColor['b']); |
|
371 | $c1 = imagecolorallocate($this->img, $c1['r'], $c1['g'], $c1['b']); |
|
372 | do { |
|
373 | $c2['r'] = ($c1['r'] < 100 ? $c1['r']*2 : mt_rand(30, 199)); |
|
374 | } while (($c2['r'] == $this->_backgroundColor['r']) && ($c2['r'] == $c1['r'])); |
|
375 | do { |
|
376 | $c2['g'] = ($c1['g'] < 100 ? $c1['g']*2 : mt_rand(30, 199)); |
|
377 | } while (($c2['g'] == $this->_backgroundColor['g']) && ($c2['g'] == $c1['g'])); |
|
@@ 375-377 (lines=3) @@ | ||
372 | do { |
|
373 | $c2['r'] = ($c1['r'] < 100 ? $c1['r']*2 : mt_rand(30, 199)); |
|
374 | } while (($c2['r'] == $this->_backgroundColor['r']) && ($c2['r'] == $c1['r'])); |
|
375 | do { |
|
376 | $c2['g'] = ($c1['g'] < 100 ? $c1['g']*2 : mt_rand(30, 199)); |
|
377 | } while (($c2['g'] == $this->_backgroundColor['g']) && ($c2['g'] == $c1['g'])); |
|
378 | do { |
|
379 | $c2['b'] = ($c1['b'] < 100 ? $c1['b']*2 : mt_rand(30, 199)); |
|
380 | } while (($c2['b'] == $this->_backgroundColor['b']) && ($c2['b'] == $c1['b'])); |
|
@@ 378-380 (lines=3) @@ | ||
375 | do { |
|
376 | $c2['g'] = ($c1['g'] < 100 ? $c1['g']*2 : mt_rand(30, 199)); |
|
377 | } while (($c2['g'] == $this->_backgroundColor['g']) && ($c2['g'] == $c1['g'])); |
|
378 | do { |
|
379 | $c2['b'] = ($c1['b'] < 100 ? $c1['b']*2 : mt_rand(30, 199)); |
|
380 | } while (($c2['b'] == $this->_backgroundColor['b']) && ($c2['b'] == $c1['b'])); |
|
381 | $c2 = imagecolorallocate($this->img, $c2['r'], $c2['g'], $c2['b']); |
|
382 | // Add the letter |
|
383 | if (function_exists('imagettftext') && (count($this->fonts) > 0)) { |