gre.torgb

gre.torgb(
	color
)
		    

Extract the red, green, blue and alpha components from a single color value.


Parameters:
        value  The color value as a number

Returns:
        The red, green, blue and alpha components as a multi-return value set

Example:

-- Create a grey single color value
local grey = gre.rgb(100, 100, 100)

-- Extract the red, green and blue values from the grey
local r, g, b = gre.torgb(grey)