final class Colour extends AnyVal with ProdInt1

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

Linear Supertypes
  1. Alphabetic
  2. By Inheritance
  1. Colour
  2. ProdInt1
  3. AnyVal
  4. Any
  1. Hide All
  2. Show All
  1. Public
  2. Protected

Instance Constructors

  1. new Colour(argbValue: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
  2. final def ##(): Int
    Definition Classes
  3. final def ==(arg0: Any): Boolean
    Definition Classes
  4. def _1: Int
    Definition Classes
  5. def alpha: Int
  6. val argbValue: Int
  7. final def asInstanceOf[T0]: T0
    Definition Classes
  8. def blue: Int
  9. def blueGl: Float
  10. def canEqual(a: Any): Boolean
  11. def contrast: Colour

    Returns the colour with the greatest contrast

  12. def contrast2(other: Colour): Colour

    Returns the colour that most contrasts with the 2 colours.

    Returns the colour that most contrasts with the 2 colours. This is useful for text that is displayed across 2 background colours.

  13. def contrastBW: Colour
  14. def darken(factor: Double = 2): Colour

    Darkens a colour by a defualt value of 2.

  15. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  16. def green: Int
  17. def greenGl: Float
  18. def hasName: Boolean
  19. def hexStr: String
  20. final def intValue: Int
    Definition Classes
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
  22. def lighten(factor: Double = 2): Colour

    Lightens a colour by a default value of 2

  23. def modAlpha(newAlpha: Int): Colour

    Modifies the alpha value of the rgba Int

  24. def nextFrom(seq: Colours): Colour
  25. def nextFromRainbow: Colour
  26. def red: Int
  27. def redGl: Float
  28. def redOrPink: Colour
  29. def setAlpha(newAlpha: Int): Colour
  30. def toString(): String
    Definition Classes
    Colour → Any
  31. def webStr: String

Inherited from ProdInt1

Inherited from AnyVal

Inherited from Any