Color

scalafx.scene.paint.Color
See theColor companion object
class Color(val delegate: Color) extends Paint, SFXDelegate[Color]

Attributes

Companion
object
Graph
Supertypes
class Paint
trait SFXDelegate[Color]
class Object
trait Matchable
class Any

Members list

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.

Attributes

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

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

Attributes

Gets the brightness component of this Color.

Gets the brightness component of this Color.

Attributes

def darker: 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.

Attributes

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.

Attributes

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.

Attributes

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

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

Attributes

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.

Attributes

def hue: Double

Gets the hue component of this Color.

Gets the hue component of this Color.

Attributes

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.

Attributes

def invert: Color

Creates a new Color that is inversion of this Color.

Creates a new Color that is inversion of this Color.

Attributes

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

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

Attributes

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.

Attributes

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.

Attributes

Gets the saturation component of this Color.

Gets the saturation component of this Color.

Attributes

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 parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: Color

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes