dos_rgbtogray - dalefugier/DOSLib GitHub Wiki
Converts a Red-Green-Blue (RGB) color value to an RGB grayscale value.
Syntax
(dos_rgbtogray red green blue)
(dos_rgbtogray rgb)
Parameters
red
The red component of an RGB color value.
green
The green component of an RGB color value.
blue
The blue component of an RGB color value.
rgb
An RGB color value.
Returns
A list containing the grayscale red-green-blue values if successful.
nil on error.
Example
Command: (dos_rgbtogray 255 0 255)
(104 104 104)