Color

object Color
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def hex(hexValue: String): Color

Constructs a Color value based on the specified hex string which needs to consist of either 3 or 6 hex digits.

Constructs a Color value based on the specified hex string which needs to consist of either 3 or 6 hex digits.

def rgb(red: Int, green: Int, blue: Int): Color

Constructs a Color value with the specified red, green and blue components.

Constructs a Color value with the specified red, green and blue components.

def rgba(red: Int, green: Int, blue: Int, alpha: Float): Color

Constructs a Color value with the specified red, green and blue components and the corresponding alpha value.

Constructs a Color value with the specified red, green and blue components and the corresponding alpha value.