Colour

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

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 Int1Elem
trait IntNElem
trait ValueNElem
trait SpecialT
trait FillFacet
trait GraphicFacet
class AnyVal
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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

Attributes

Definition Classes
def average(operand: Colour): Colour
def blue: Int
def blueGl: Float
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 greenGl: Float
def hexStr: String
final override def int1: 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 nextFrom(seq: Colours): Colour
def red: Int
def redGl: Float
def rgbHexStr: String
def setAlpha(newAlpha: Int): Colour
def svgStr: String
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
def webStr: String

Inherited methods

override def intBufferAppend(buffer: ArrayBuffer[Int]): Unit

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Attributes

Definition Classes
Inherited from:
Int1Elem
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:
Int1Elem

Concrete fields

val argbValue: Int