Colour

ostrat.Colour
See theColour companion object
final class Colour(val argbValue: Int) extends AnyVal with FillFacet with ElemInt1

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

Attributes

Companion:
object
Graph
Supertypes
trait ElemInt1
trait ElemIntN
trait SpecialT
trait FillFacet
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def alpha: Int
override def attribs: RArr[XmlAtt]

Attributes

Definition Classes
def blue: Int
def canEqual(a: Any): Boolean

Returns the colour with the greatest contrast

Returns the colour with the greatest contrast

Attributes

def contrast2(other: Colour): Colour

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

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

Attributes

def darken(factor: Double): Colour

Darkens a colour by a defualt value of 2.

Darkens a colour by a defualt value of 2.

Attributes

The fill attribute for SVG.

The fill attribute for SVG.

Attributes

def green: Int
def hexStr: String
final override def intValue: Int

Attributes

Definition Classes
def lighten(factor: Double): Colour

Lightens a colour by a default value of 2

Lightens a colour by a default value of 2

Attributes

def modAlpha(newAlpha: Int): Colour

Modifies the alpha value of the rgba Int

Modifies the alpha value of the rgba Int

Attributes

def red: Int
def rgbHexStr: String
def setAlpha(newAlpha: Int): Colour
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

def int1: Int

Attributes

Inherited from:
ElemInt1
override def intForeach(f: Int => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
ElemInt1

Concrete fields