Turns an RGB value into grayscale.
public static grayscalePixel ( integer[] $originalPixel ) : integer[] | ||
$originalPixel | integer[] | A hash with 'red', 'green', and 'blue' values. |
Résultat | integer[] | A hash with 'red', 'green', and 'blue' values for the corresponding gray color. |