The imagesetpixel() function is an inbuilt function in PHP which is used to draw a pixel at the specified coordinate. Syntax:  bool imagesetpixel( resource $image, int $x, int $y, int $color ) Parameters: This function accept four parameters as mentioned above and described below:  $image: It specifies the image resource to work on. $x: It specifies the x-coordinate of pixel. $y: It specifies the y-coordinate of pixel. $color: ...
https://neveropen.tech/php-imagesetpixel-function/?fsp_sid=121196