Color

class Color(val delegate: Color) extends Paint with SFXDelegate[Color]
Companion
object
class Paint
trait SFXDelegate[Color]
class Object
trait Matchable
class Any

Value members

Concrete methods

def blue: Double

The blue component of the Color, in the range 0.0-1.0.

The blue component of the Color, in the range 0.0-1.0.

Creates a new Color that is a brighter version of this Color.

Creates a new Color that is a brighter version of this Color.

def brightness: Double

Gets the brightness component of this Color.

Gets the brightness component of this Color.

Creates a new Color that is a darker version of this Color.

Creates a new Color that is a darker version of this Color.

def deriveColor(hueShift: Double, saturationFactor: Double, brightnessFactor: Double, opacityFactor: Double): Color

Creates a new Color based on this Color with hue, saturation, brightness and opacity values altered.

Creates a new Color based on this Color with hue, saturation, brightness and opacity values altered.

Creates a new Color that is a less saturated version of this Color.

Creates a new Color that is a less saturated version of this Color.

Creates a new Color that is grayscale equivalent of this Color.

Creates a new Color that is grayscale equivalent of this Color.

def green: Double

The green component of the Color, in the range 0.0-1.0.

The green component of the Color, in the range 0.0-1.0.

def hue: Double

Gets the hue component of this Color.

Gets the hue component of this Color.

def interpolate(endValue: Color, t: Double): Color

The function calculates an interpolated value along the fraction t between 0.0 and 1.0.

The function calculates an interpolated value along the fraction t between 0.0 and 1.0.

Creates a new Color that is inversion of this Color.

Creates a new Color that is inversion of this Color.

def opacity: Double

The opacity of the Color, in the range 0.0-1.0.

The opacity of the Color, in the range 0.0-1.0.

def opacity(o: Double): Color
def red: Double

The red component of the Color, in the range 0.0-1.0.

The red component of the Color, in the range 0.0-1.0.

Creates a new Color that is a more saturated version of this Color.

Creates a new Color that is a more saturated version of this Color.

def saturation: Double

Gets the saturation component of this Color.

Gets the saturation component of this Color.

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate

Concrete fields

override val delegate: Color