Skip to content

color.color

Andrew McWatters edited this page Jun 13, 2016 · 13 revisions

color()

Parameters

**Usage:** `color( r, g, b, a )`
Name Type Description
r number Red channel (0-255)
g number Green channel (0-255)
b number Blue channel (0-255)
a number Alpha channel (0-255)

Example

local blue = color( 0, 0, 255, 255 )
graphics.setColor( blue )
graphics.print( "I'm blue da ba dee da ba di..." )
Clone this wiki locally