protected function drawPixel()
    {
        $pixelColor = imagecolorallocate($this->image, mt_rand(0, 255), mt_rand(100, 255), mt_rand(50, 255));

        for($i = 0; $i< mt_rand(1000, 1800); $i++)
        {
            imagesetpixel($this->image, mt_rand() % $this->width, mt_rand() % $this->height, $pixelColor);
        }
    }
protected function drawPixel()
    {
        $pixelColor = imagecolorallocate($this->image, mt_rand(0, 255), mt_rand(100, 255), mt_rand(50, 255));

        for($i = 0; $i< mt_rand(1000, 1800); $i++)
        {
            imagesetpixel($this->image, mt_rand() % $this->width, mt_rand() % $this->height, $pixelColor);
        }
    }
protected function drawPixel ( ) { $ pixelColor = imagecolorallocate ( $ this -> image , mt_rand ( 0 , 255 ) , mt_rand ( 100 , 255 ) , mt_rand ( 50 , 255 ) ) ; for ( $ i = 0 ; $ i < mt_rand ( 1000 , 1800 ) ; $ i ++ ) { imagesetpixel ( $ this -> image , mt_rand ( ) % $ this -> width , mt_rand ( ) % $ this -> height , $ pixelColor ) ; } }
Draw pixel points

@return void
Draw pixel points