Script Function Reference

Function Reference >Script Function Reference >Function Manipulation>RGB

RGB

RGB generates a color as a color table.

RGB(r, g, b)

Parameters

r is the red component of the color ranging from 0 - 255
g is the green component of the color ranging from 0 - 255
b is the blue component of the color ranging from 0 - 255

Return Value

RGB returns a color table.

Example

function example()
	setFunctionColor("f", RGB(128, 255, 255))
end