/** * Random image lines * * @return \Intervention\Image\Image */ protected function lines() { for ($i = 0; $i <= $this->lines; $i++) { $this->image->line(rand(0, $this->image->width()) + $i * rand(0, $this->image->height()), rand(0, $this->image->height()), rand(0, $this->image->width()), rand(0, $this->image->height()), function ($draw) { $draw->color($this->fontColor()); }); } return $this->image; }