Color

scalafx.scene.paint.Color
See theColor companion class
object Color

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Color.type

Members list

Value members

Concrete methods

def apply(red: Double, green: Double, blue: Double, opacity: Double): Color
def color(red: Double, green: Double, blue: Double): Color

Creates an opaque sRGB color with the specified red, green and blue values in the range 0.0-1.0.

Creates an opaque sRGB color with the specified red, green and blue values in the range 0.0-1.0.

Attributes

def color(red: Double, green: Double, blue: Double, opacity: Double): Color

Creates an sRGB color with the specified red, green and blue values in the range 0.0-1.0, and a given opacity.

Creates an sRGB color with the specified red, green and blue values in the range 0.0-1.0, and a given opacity.

Attributes

def gray(gray: Double): Color

Creates an opaque grey color.

Creates an opaque grey color.

Attributes

def gray(gray: Double, opacity: Double): Color

Creates a grey color.

Creates a grey color.

Attributes

def grayRgb(gray: Int): Color

This is a shortcut for rgb(gray, gray, gray).

This is a shortcut for rgb(gray, gray, gray).

Attributes

def grayRgb(gray: Int, opacity: Double): Color

This is a shortcut for rgb(gray, gray, gray, opacity).

This is a shortcut for rgb(gray, gray, gray, opacity).

Attributes

def hsb(hue: Double, saturation: Double, brightness: Double): Color

Creates an opaque Color based on the specified values in the HSB color model.

Creates an opaque Color based on the specified values in the HSB color model.

Attributes

def hsb(hue: Double, saturation: Double, brightness: Double, opacity: Double): Color

Creates a Color based on the specified values in the HSB color model, and a given opacity.

Creates a Color based on the specified values in the HSB color model, and a given opacity.

Attributes

def rgb(red: Int, green: Int, blue: Int): Color

Creates an opaque sRGB color with the specified RGB values in the range 0-255.

Creates an opaque sRGB color with the specified RGB values in the range 0-255.

Attributes

def rgb(red: Int, green: Int, blue: Int, opacity: Double): Color

Creates an sRGB color with the specified RGB values in the range 0-255, and a given opacity in the range 0.0-1.0.

Creates an sRGB color with the specified RGB values in the range 0-255, and a given opacity in the range 0.0-1.0.

Attributes

def valueOf(value: String): Color

Creates a color value from a string representation. The format of the string representation is the same as in web(String).

Creates a color value from a string representation. The format of the string representation is the same as in web(String).

Attributes

def web(color: String): Color

Creates an RGB color specified with hexadecimal notation or color name.

Creates an RGB color specified with hexadecimal notation or color name.

Attributes

def web(color: String, opacity: Double): Color

Creates an RGB color specified with hexadecimal notation or color name.

Creates an RGB color specified with hexadecimal notation or color name.

Attributes

Concrete fields

val Aqua: Color
val Azure: Color
val Beige: Color
val Bisque: Color
val Black: Color
val Blue: Color
val Brown: Color
val Coral: Color
val Crimson: Color
val Cyan: Color
val DarkRed: Color
val DimGray: Color
val DimGrey: Color
val Fuchsia: Color
val Gold: Color
val Gray: Color
val Green: Color
val Grey: Color
val HotPink: Color
val Indigo: Color
val Ivory: Color
val Khaki: Color
val Lime: Color
val Linen: Color
val Magenta: Color
val Maroon: Color
val OldLace: Color
val Olive: Color
val Orange: Color
val Orchid: Color
val Peru: Color
val Pink: Color
val Plum: Color
val Purple: Color
val Red: Color
val Salmon: Color
val Sienna: Color
val Silver: Color
val SkyBlue: Color
val Snow: Color
val Tan: Color
val Teal: Color
val Thistle: Color
val Tomato: Color
val Violet: Color
val Wheat: Color
val White: Color
val Yellow: Color

Deprecated fields

Attributes

Deprecated
true

Attributes

Deprecated
true
val AQUA: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val AZURE: Color

Attributes

Deprecated
true
val BEIGE: Color

Attributes

Deprecated
true
val BISQUE: Color

Attributes

Deprecated
true
val BLACK: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val BLUE: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val BROWN: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val CORAL: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val CRIMSON: Color

Attributes

Deprecated
true
val CYAN: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val DARKRED: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val DIMGRAY: Color

Attributes

Deprecated
true
val DIMGREY: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val FUCHSIA: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val GOLD: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val GRAY: Color

Attributes

Deprecated
true
val GREEN: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val GREY: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val HOTPINK: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val INDIGO: Color

Attributes

Deprecated
true
val IVORY: Color

Attributes

Deprecated
true
val KHAKI: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val LIME: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val LINEN: Color

Attributes

Deprecated
true
val MAGENTA: Color

Attributes

Deprecated
true
val MAROON: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val OLDLACE: Color

Attributes

Deprecated
true
val OLIVE: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val ORANGE: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val ORCHID: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val PERU: Color

Attributes

Deprecated
true
val PINK: Color

Attributes

Deprecated
true
val PLUM: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val PURPLE: Color

Attributes

Deprecated
true
val RED: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val SALMON: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val SIENNA: Color

Attributes

Deprecated
true
val SILVER: Color

Attributes

Deprecated
true
val SKYBLUE: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val SNOW: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val TAN: Color

Attributes

Deprecated
true
val TEAL: Color

Attributes

Deprecated
true
val THISTLE: Color

Attributes

Deprecated
true
val TOMATO: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
val VIOLET: Color

Attributes

Deprecated
true
val WHEAT: Color

Attributes

Deprecated
true
val WHITE: Color

Attributes

Deprecated
true

Attributes

Deprecated
true
val YELLOW: Color

Attributes

Deprecated
true

Attributes

Deprecated
true

Implicits

Implicits

implicit def sfxColor2jfx(c: Color): Color