|
@@ 359-365 (lines=7) @@
|
| 356 |
|
/** |
| 357 |
|
* Draw Lines background |
| 358 |
|
*/ |
| 359 |
|
public function drawLines() |
| 360 |
|
{ |
| 361 |
|
for ($i = 0; $i < $this->config['background_num']; ++$i) { |
| 362 |
|
$randomcolor = imagecolorallocate($this->oImage, mt_rand(190, 255), mt_rand(190, 255), mt_rand(190, 255)); |
| 363 |
|
imageline($this->oImage, mt_rand(0, $this->width), mt_rand(0, $this->height), mt_rand(0, $this->width), mt_rand(0, $this->height), $randomcolor); |
| 364 |
|
} |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
/** |
| 368 |
|
* Draw Rectangles background |
|
@@ 370-376 (lines=7) @@
|
| 367 |
|
/** |
| 368 |
|
* Draw Rectangles background |
| 369 |
|
*/ |
| 370 |
|
public function drawRectangles() |
| 371 |
|
{ |
| 372 |
|
for ($i = 1; $i <= $this->config['background_num']; ++$i) { |
| 373 |
|
$randomcolor = imagecolorallocate($this->oImage, mt_rand(190, 255), mt_rand(190, 255), mt_rand(190, 255)); |
| 374 |
|
imagefilledrectangle($this->oImage, mt_rand(0, $this->width), mt_rand(0, $this->height), mt_rand(0, $this->width), mt_rand(0, $this->height), $randomcolor); |
| 375 |
|
} |
| 376 |
|
} |
| 377 |
|
|
| 378 |
|
/** |
| 379 |
|
* Draw Bars background |
|
@@ 398-404 (lines=7) @@
|
| 395 |
|
/** |
| 396 |
|
* Draw Ellipses background |
| 397 |
|
*/ |
| 398 |
|
public function drawEllipses() |
| 399 |
|
{ |
| 400 |
|
for ($i = 1; $i <= $this->config['background_num']; ++$i) { |
| 401 |
|
$randomcolor = imagecolorallocate($this->oImage, mt_rand(190, 255), mt_rand(190, 255), mt_rand(190, 255)); |
| 402 |
|
imageellipse($this->oImage, mt_rand(0, $this->width), mt_rand(0, $this->height), mt_rand(0, $this->width), mt_rand(0, $this->height), $randomcolor); |
| 403 |
|
} |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
/** |
| 407 |
|
* Draw polygons background |