PixelCraft::rgbToBrightness
Calculates the brightness value of an RGB color.
Signature
public function rgbToBrightness(array
$rgb )
Parameters
$rgb
— array- The RGB color values as an associative array with keys 'r', 'g', and 'b'.
Returns
- int
- The brightness value of the RGB color.