private static function __background() { self::$im = imagecreatetruecolor(self::$config['width'], self::$config['height']); for ($i = 0; $i < 3; $i++) { $start[$i] = rand(200, 255); $end[$i] = rand(100, 200); $step[$i] = ($end[$i] - $start[$i]) / self::$config['width']; self::$color[$i] = $start[$i]; } for ($i = 0; $i < self::$config['width']; $i++) { $color = imagecolorallocate(self::$im, self::$color[0], self::$color[1], self::$color[2]); imageline(self::$im, $i, 0, $i, self::$config['height'], $color); self::$color[0] += $step[0]; self::$color[1] += $step[1]; self::$color[2] += $step[2]; } self::$color[0] -= 20; self::$color[1] -= 20; self::$color[2] -= 20; }