Color

constructor(alpha: Int, red: Int, green: Int, blue: Int)

Create a color from component integers. Components are masked to their last eight bits.


constructor(red: Int, green: Int, blue: Int)

Create an opaque color from component integers. Components are masked to their last eight bits.


constructor(alpha: Float, red: Float, green: Float, blue: Float)

Create a color from component floats. Components are multiplied by 255 and rounded.


constructor(red: Float, green: Float, blue: Float)

Create an opaque color from component floats. Components are multiplied by 255 and rounded.


constructor(argb: Int)