Skip to content
Ryan Davis edited this page Jan 10, 2015 · 2 revisions

class tannus.io.Color

General-Use RGBA Color Object. Warning: This class is abstract, meaning that none of it's fields or methods are actually there at runtime. You cannot access them dynamically.


Instance Methods

function new(?r:Int = 0, ?g:Int = 0, ?b:Int = 0, ?a:Int = 0):Void

Constructor function, inlined by default, all arguments nullable, all default to 0

function toString():String

If alpha is 0, will return a hexadecimal representation of this Color If alpha is higher than 0, will return a CSS RGBA Color representation


Instance Fields

var red : Int

Red Channel

var green : Int

Green Channel

var blue : Int

Blue Channel

var alpha : Int

Alpha Channel