Skip to content

colour

Fields

Name Type Description Access rights
r number red component (0-255) read/write
g number green component (0-255) read/write
b number blue component (0-255) read/write
a number alpha component (0-255) read/write

Example

red = colour( 255, 0, 0, 255 ) -- or colour( 255, 0, 0 ), alpha defaults to 255 if not specified.
utility.println( 'r:' .. red.a .. ' g:' .. red.g .. ' b:' .. red.b .. ' a:' .. red.a )