PixelCraft::getPixelBrightness
Calculates the brightness of a pixel at the specified coordinates.
Signature
public function getPixelBrightness(int
$x,
int
$y )
Parameters
$x
— int- The x-coordinate of the pixel.
$y
— int- The y-coordinate of the pixel.
Returns
- int
- The brightness value of the pixel.