ColorVector:Set(cr, cg, cb)

Version added: before 9.5
Set the value of a color by r, g and b

Arguments:

Name Type Description Default Ver
cr real The r value you wish to set < 9.5
cg real The g value you wish to set < 9.5
cb real The b value you wish to set < 9.5

Return value:

void none
Note that the RGB values are real numbers 0-1, not integers 0-255.

For example:
local vc1 = LM.ColorVector:new_local()
vc1:Set(0, .995, 0) -- almost pure green
<< Back to ColorVector