Colour

object Colour

Companion object for Colour class, contains named values for the standard web colours and implicit instances for various type classes.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(argbValue: Int): Colour

The argbValue must start with 0xFF if the default full opacity is required. So 0xFFFF0000 gives full opacity Red

The argbValue must start with 0xFF if the default full opacity is required. So 0xFFFF0000 gives full opacity Red

def blackOrWhite(b: Boolean): Colour
def fromInts(red: Int, green: Int, blue: Int, a: Int): Colour

Concrete fields

named colors & values following CSS Color Module Level 4 - though names are UpperCamelCase here - plus 4 non standard colors: BrightSkyBlue, DarkYellow, LemonLime, LightRed

named colors & values following CSS Color Module Level 4 - though names are UpperCamelCase here - plus 4 non standard colors: BrightSkyBlue, DarkYellow, LemonLime, LightRed

val Aqua: Colour
val Blue: Colour
val Cyan: Colour
val Gold: Colour
val Gray: Colour
val Grey: Colour
val Lime: Colour
val Peru: Colour
val Pink: Colour
val Plum: Colour
val Red: Colour
val Snow: Colour
val Tan: Colour
val Teal: Colour
val strToValue: Map[String, Colour]
val valueToStr: Map[Colour, String]

Implicits

Implicits

implicit val eqImplicit: EqT[Colour]