Uses of Class
javafx.scene.paint.Color
Package
Description
Provides the set of classes for ease of use transition based animations.
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
Provides various
StyleConverter
classes
that convert CSS parsed values.Provides the core set of base
classes for the JavaFX Scene Graph API.
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
Provides the set of classes for attaching graphical filter effects to JavaFX Scene Graph Nodes.
Provides the set of classes for loading and displaying images.
Provides the set of classes for colors and gradients used to fill shapes and
backgrounds when rendering the scene graph.
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
This package provides means for loading and displaying Web content.
-
Uses of Color in javafx.animation
Modifier and TypeMethodDescriptionfinal Color
FillTransition.getFromValue()
Gets the value of thefromValue
property.final Color
StrokeTransition.getFromValue()
Gets the value of thefromValue
property.final Color
FillTransition.getToValue()
Gets the value of thetoValue
property.final Color
StrokeTransition.getToValue()
Gets the value of thetoValue
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Color>
FillTransition.fromValueProperty()
Specifies the start color value for thisFillTransition
.final ObjectProperty<Color>
StrokeTransition.fromValueProperty()
Specifies the start color value for thisStrokeTransition
.final ObjectProperty<Color>
FillTransition.toValueProperty()
Specifies the stop color value for thisFillTransition
.final ObjectProperty<Color>
StrokeTransition.toValueProperty()
Specifies the stop color value for thisStrokeTransition
.Modifier and TypeMethodDescriptionfinal void
FillTransition.setFromValue
(Color value) Sets the value of thefromValue
property.final void
StrokeTransition.setFromValue
(Color value) Sets the value of thefromValue
property.final void
FillTransition.setToValue
(Color value) Sets the value of thetoValue
property.final void
StrokeTransition.setToValue
(Color value) Sets the value of thetoValue
property.ModifierConstructorDescriptionFillTransition
(Duration duration, Color fromValue, Color toValue) The constructor ofFillTransition
FillTransition
(Duration duration, Shape shape, Color fromValue, Color toValue) The constructor ofFillTransition
StrokeTransition
(Duration duration, Color fromValue, Color toValue) The constructor ofStrokeTransition
StrokeTransition
(Duration duration, Shape shape, Color fromValue, Color toValue) The constructor ofStrokeTransition
-
Uses of Color in javafx.css
Modifier and TypeMethodDescriptionfinal CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function) Create a CssMetaData<S, Color> with initial value of Color.BLACK, and inherit flag defaulting to false.final CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a CssMetaData<S, Color> with initial value, and inherit flag defaulting to false.final CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a CssMetaData<S, Color> with initial value, and inherit flag.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty) Create a StyleableProperty<Color> using previously created CssMetaData for the givencssProperty
.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function) Create a StyleableProperty<Color>.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a StyleableProperty<Color> with initial value.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a StyleableProperty<Color> with initial value and inherit flag.static StyleConverter<String,
Color> StyleConverter.getColorConverter()
Return aStyleConverter
that converts a String representation of a web color to aColor
.Modifier and TypeMethodDescriptionfinal CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a CssMetaData<S, Color> with initial value, and inherit flag defaulting to false.final CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a CssMetaData<S, Color> with initial value, and inherit flag.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a StyleableProperty<Color> with initial value.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a StyleableProperty<Color> with initial value and inherit flag.Modifier and TypeMethodDescriptionfinal CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function) Create a CssMetaData<S, Color> with initial value of Color.BLACK, and inherit flag defaulting to false.final CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a CssMetaData<S, Color> with initial value, and inherit flag defaulting to false.final CssMetaData<S,
Color> StyleablePropertyFactory.createColorCssMetaData
(String property, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a CssMetaData<S, Color> with initial value, and inherit flag.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function) Create a StyleableProperty<Color>.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a StyleableProperty<Color> with initial value.final StyleableProperty<Color>
StyleablePropertyFactory.createStyleableColorProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a StyleableProperty<Color> with initial value and inherit flag. -
Uses of Color in javafx.css.converter
Modifier and TypeMethodDescriptionstatic StyleConverter<String,
Color> ColorConverter.getInstance()
Gets theColorConverter
instance. -
Uses of Color in javafx.scene
Modifier and TypeMethodDescriptionfinal Color
LightBase.getColor()
Gets the value of thecolor
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Color>
LightBase.colorProperty()
Specifies the color of light source.Modifier and TypeMethodDescriptionfinal void
Sets the value of thecolor
property.ModifierConstructorDescriptionAmbientLight
(Color color) Creates a new instance ofAmbientLight
class using the specified color.DirectionalLight
(Color color) Creates a newDirectionalLight
with the specified color.protected
Creates a new instance ofLightBase
class using the specified color.PointLight
(Color color) Creates a new instance ofPointLight
class using the specified color.Creates a new instance ofSpotLight
class using the specified color. -
Uses of Color in javafx.scene.control
Modifier and TypeMethodDescriptionfinal ObservableList<Color>
ColorPicker.getCustomColors()
Gets the list of custom colors added to the Color Palette by the user.ModifierConstructorDescriptionColorPicker
(Color color) Creates a ColorPicker instance and sets the selected color to the given color. -
Uses of Color in javafx.scene.control.skin
Modifier and TypeMethodDescriptionprotected StringConverter<Color>
ColorPickerSkin.getConverter()
Subclasses are responsible for getting the converter. -
Uses of Color in javafx.scene.effect
Modifier and TypeMethodDescriptionfinal Color
DropShadow.getColor()
Gets the value of thecolor
property.final Color
InnerShadow.getColor()
Gets the value of thecolor
property.final Color
Light.getColor()
Gets the value of thecolor
property.final Color
Shadow.getColor()
Gets the value of thecolor
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Color>
DropShadow.colorProperty()
The shadowColor
.final ObjectProperty<Color>
InnerShadow.colorProperty()
The shadowColor
.final ObjectProperty<Color>
Light.colorProperty()
The color of the light source.final ObjectProperty<Color>
Shadow.colorProperty()
The shadowColor
.Modifier and TypeMethodDescriptionfinal void
Sets the value of thecolor
property.final void
Sets the value of thecolor
property.final void
Sets the value of thecolor
property.final void
Sets the value of thecolor
property.ModifierConstructorDescriptionCreates a new instance of Distant light with the specified azimuth, elevation, and color.DropShadow
(double radius, double offsetX, double offsetY, Color color) Creates a new instance of DropShadow with the specified radius, offsetX, offsetY and color.DropShadow
(double radius, Color color) Creates a new instance of DropShadow with specified radius and color.DropShadow
(BlurType blurType, Color color, double radius, double spread, double offsetX, double offsetY) Creates a new instance of DropShadow with the specified blurType, color, radius, spread, offsetX and offsetY.InnerShadow
(double radius, double offsetX, double offsetY, Color color) Creates a new instance of InnerShadow with specified radius, offsetX, offsetY and color.InnerShadow
(double radius, Color color) Creates a new instance of InnerShadow with specified radius and color.InnerShadow
(BlurType blurType, Color color, double radius, double choke, double offsetX, double offsetY) Creates a new instance of InnerShadow with the specified blurType, color, radius, spread, offsetX and offsetY.Creates a new instance of Point light with the specified x, y, x, and color.Creates a new instance of Shadow with specified radius and color.Creates a new instance of Shadow with the specified blurType, color, radius.Creates a new instance of Spot light with the specified x, y, z, specularExponent, and color. -
Uses of Color in javafx.scene.image
-
Uses of Color in javafx.scene.paint
Modifier and TypeFieldDescriptionstatic final Color
Color.ALICEBLUE
The color alice blue with an RGB value of #F0F8FFstatic final Color
Color.ANTIQUEWHITE
The color antique white with an RGB value of #FAEBD7static final Color
Color.AQUA
The color aqua with an RGB value of #00FFFFstatic final Color
Color.AQUAMARINE
The color aquamarine with an RGB value of #7FFFD4static final Color
Color.AZURE
The color azure with an RGB value of #F0FFFFstatic final Color
Color.BEIGE
The color beige with an RGB value of #F5F5DCstatic final Color
Color.BISQUE
The color bisque with an RGB value of #FFE4C4static final Color
Color.BLACK
The color black with an RGB value of #000000static final Color
Color.BLANCHEDALMOND
The color blanched almond with an RGB value of #FFEBCDstatic final Color
Color.BLUE
The color blue with an RGB value of #0000FFstatic final Color
Color.BLUEVIOLET
The color blue violet with an RGB value of #8A2BE2static final Color
Color.BROWN
The color brown with an RGB value of #A52A2Astatic final Color
Color.BURLYWOOD
The color burly wood with an RGB value of #DEB887static final Color
Color.CADETBLUE
The color cadet blue with an RGB value of #5F9EA0static final Color
Color.CHARTREUSE
The color chartreuse with an RGB value of #7FFF00static final Color
Color.CHOCOLATE
The color chocolate with an RGB value of #D2691Estatic final Color
Color.CORAL
The color coral with an RGB value of #FF7F50static final Color
Color.CORNFLOWERBLUE
The color cornflower blue with an RGB value of #6495EDstatic final Color
Color.CORNSILK
The color cornsilk with an RGB value of #FFF8DCstatic final Color
Color.CRIMSON
The color crimson with an RGB value of #DC143Cstatic final Color
Color.CYAN
The color cyan with an RGB value of #00FFFFstatic final Color
Color.DARKBLUE
The color dark blue with an RGB value of #00008Bstatic final Color
Color.DARKCYAN
The color dark cyan with an RGB value of #008B8Bstatic final Color
Color.DARKGOLDENROD
The color dark goldenrod with an RGB value of #B8860Bstatic final Color
Color.DARKGRAY
The color dark gray with an RGB value of #A9A9A9static final Color
Color.DARKGREEN
The color dark green with an RGB value of #006400static final Color
Color.DARKGREY
The color dark grey with an RGB value of #A9A9A9static final Color
Color.DARKKHAKI
The color dark khaki with an RGB value of #BDB76Bstatic final Color
Color.DARKMAGENTA
The color dark magenta with an RGB value of #8B008Bstatic final Color
Color.DARKOLIVEGREEN
The color dark olive green with an RGB value of #556B2Fstatic final Color
Color.DARKORANGE
The color dark orange with an RGB value of #FF8C00static final Color
Color.DARKORCHID
The color dark orchid with an RGB value of #9932CCstatic final Color
Color.DARKRED
The color dark red with an RGB value of #8B0000static final Color
Color.DARKSALMON
The color dark salmon with an RGB value of #E9967Astatic final Color
Color.DARKSEAGREEN
The color dark sea green with an RGB value of #8FBC8Fstatic final Color
Color.DARKSLATEBLUE
The color dark slate blue with an RGB value of #483D8Bstatic final Color
Color.DARKSLATEGRAY
The color dark slate gray with an RGB value of #2F4F4Fstatic final Color
Color.DARKSLATEGREY
The color dark slate grey with an RGB value of #2F4F4Fstatic final Color
Color.DARKTURQUOISE
The color dark turquoise with an RGB value of #00CED1static final Color
Color.DARKVIOLET
The color dark violet with an RGB value of #9400D3static final Color
Color.DEEPPINK
The color deep pink with an RGB value of #FF1493static final Color
Color.DEEPSKYBLUE
The color deep sky blue with an RGB value of #00BFFFstatic final Color
Color.DIMGRAY
The color dim gray with an RGB value of #696969static final Color
Color.DIMGREY
The color dim grey with an RGB value of #696969static final Color
Color.DODGERBLUE
The color dodger blue with an RGB value of #1E90FFstatic final Color
Color.FIREBRICK
The color firebrick with an RGB value of #B22222static final Color
Color.FLORALWHITE
The color floral white with an RGB value of #FFFAF0static final Color
Color.FORESTGREEN
The color forest green with an RGB value of #228B22static final Color
Color.FUCHSIA
The color fuchsia with an RGB value of #FF00FFstatic final Color
Color.GAINSBORO
The color gainsboro with an RGB value of #DCDCDCstatic final Color
Color.GHOSTWHITE
The color ghost white with an RGB value of #F8F8FFstatic final Color
Color.GOLD
The color gold with an RGB value of #FFD700static final Color
Color.GOLDENROD
The color goldenrod with an RGB value of #DAA520static final Color
Color.GRAY
The color gray with an RGB value of #808080static final Color
Color.GREEN
The color green with an RGB value of #008000static final Color
Color.GREENYELLOW
The color green yellow with an RGB value of #ADFF2Fstatic final Color
Color.GREY
The color grey with an RGB value of #808080static final Color
Color.HONEYDEW
The color honeydew with an RGB value of #F0FFF0static final Color
Color.HOTPINK
The color hot pink with an RGB value of #FF69B4static final Color
Color.INDIANRED
The color indian red with an RGB value of #CD5C5Cstatic final Color
Color.INDIGO
The color indigo with an RGB value of #4B0082static final Color
Color.IVORY
The color ivory with an RGB value of #FFFFF0static final Color
Color.KHAKI
The color khaki with an RGB value of #F0E68Cstatic final Color
Color.LAVENDER
The color lavender with an RGB value of #E6E6FAstatic final Color
Color.LAVENDERBLUSH
The color lavender blush with an RGB value of #FFF0F5static final Color
Color.LAWNGREEN
The color lawn green with an RGB value of #7CFC00static final Color
Color.LEMONCHIFFON
The color lemon chiffon with an RGB value of #FFFACDstatic final Color
Color.LIGHTBLUE
The color light blue with an RGB value of #ADD8E6static final Color
Color.LIGHTCORAL
The color light coral with an RGB value of #F08080static final Color
Color.LIGHTCYAN
The color light cyan with an RGB value of #E0FFFFstatic final Color
Color.LIGHTGOLDENRODYELLOW
The color light goldenrod yellow with an RGB value of #FAFAD2static final Color
Color.LIGHTGRAY
The color light gray with an RGB value of #D3D3D3static final Color
Color.LIGHTGREEN
The color light green with an RGB value of #90EE90static final Color
Color.LIGHTGREY
The color light grey with an RGB value of #D3D3D3static final Color
Color.LIGHTPINK
The color light pink with an RGB value of #FFB6C1static final Color
Color.LIGHTSALMON
The color light salmon with an RGB value of #FFA07Astatic final Color
Color.LIGHTSEAGREEN
The color light sea green with an RGB value of #20B2AAstatic final Color
Color.LIGHTSKYBLUE
The color light sky blue with an RGB value of #87CEFAstatic final Color
Color.LIGHTSLATEGRAY
The color light slate gray with an RGB value of #778899static final Color
Color.LIGHTSLATEGREY
The color light slate grey with an RGB value of #778899static final Color
Color.LIGHTSTEELBLUE
The color light steel blue with an RGB value of #B0C4DEstatic final Color
Color.LIGHTYELLOW
The color light yellow with an RGB value of #FFFFE0static final Color
Color.LIME
The color lime with an RGB value of #00FF00static final Color
Color.LIMEGREEN
The color lime green with an RGB value of #32CD32static final Color
Color.LINEN
The color linen with an RGB value of #FAF0E6static final Color
Color.MAGENTA
The color magenta with an RGB value of #FF00FFstatic final Color
Color.MAROON
The color maroon with an RGB value of #800000static final Color
Color.MEDIUMAQUAMARINE
The color medium aquamarine with an RGB value of #66CDAAstatic final Color
Color.MEDIUMBLUE
The color medium blue with an RGB value of #0000CDstatic final Color
Color.MEDIUMORCHID
The color medium orchid with an RGB value of #BA55D3static final Color
Color.MEDIUMPURPLE
The color medium purple with an RGB value of #9370DBstatic final Color
Color.MEDIUMSEAGREEN
The color medium sea green with an RGB value of #3CB371static final Color
Color.MEDIUMSLATEBLUE
The color medium slate blue with an RGB value of #7B68EEstatic final Color
Color.MEDIUMSPRINGGREEN
The color medium spring green with an RGB value of #00FA9Astatic final Color
Color.MEDIUMTURQUOISE
The color medium turquoise with an RGB value of #48D1CCstatic final Color
Color.MEDIUMVIOLETRED
The color medium violet red with an RGB value of #C71585static final Color
Color.MIDNIGHTBLUE
The color midnight blue with an RGB value of #191970static final Color
Color.MINTCREAM
The color mint cream with an RGB value of #F5FFFAstatic final Color
Color.MISTYROSE
The color misty rose with an RGB value of #FFE4E1static final Color
Color.MOCCASIN
The color moccasin with an RGB value of #FFE4B5static final Color
Color.NAVAJOWHITE
The color navajo white with an RGB value of #FFDEADstatic final Color
Color.NAVY
The color navy with an RGB value of #000080static final Color
Color.OLDLACE
The color old lace with an RGB value of #FDF5E6static final Color
Color.OLIVE
The color olive with an RGB value of #808000static final Color
Color.OLIVEDRAB
The color olive drab with an RGB value of #6B8E23static final Color
Color.ORANGE
The color orange with an RGB value of #FFA500static final Color
Color.ORANGERED
The color orange red with an RGB value of #FF4500static final Color
Color.ORCHID
The color orchid with an RGB value of #DA70D6static final Color
Color.PALEGOLDENROD
The color pale goldenrod with an RGB value of #EEE8AAstatic final Color
Color.PALEGREEN
The color pale green with an RGB value of #98FB98static final Color
Color.PALETURQUOISE
The color pale turquoise with an RGB value of #AFEEEEstatic final Color
Color.PALEVIOLETRED
The color pale violet red with an RGB value of #DB7093static final Color
Color.PAPAYAWHIP
The color papaya whip with an RGB value of #FFEFD5static final Color
Color.PEACHPUFF
The color peach puff with an RGB value of #FFDAB9static final Color
Color.PERU
The color peru with an RGB value of #CD853Fstatic final Color
Color.PINK
The color pink with an RGB value of #FFC0CBstatic final Color
Color.PLUM
The color plum with an RGB value of #DDA0DDstatic final Color
Color.POWDERBLUE
The color powder blue with an RGB value of #B0E0E6static final Color
Color.PURPLE
The color purple with an RGB value of #800080static final Color
Color.RED
The color red with an RGB value of #FF0000static final Color
Color.ROSYBROWN
The color rosy brown with an RGB value of #BC8F8Fstatic final Color
Color.ROYALBLUE
The color royal blue with an RGB value of #4169E1static final Color
Color.SADDLEBROWN
The color saddle brown with an RGB value of #8B4513static final Color
Color.SALMON
The color salmon with an RGB value of #FA8072static final Color
Color.SANDYBROWN
The color sandy brown with an RGB value of #F4A460static final Color
Color.SEAGREEN
The color sea green with an RGB value of #2E8B57static final Color
Color.SEASHELL
The color sea shell with an RGB value of #FFF5EEstatic final Color
Color.SIENNA
The color sienna with an RGB value of #A0522Dstatic final Color
Color.SILVER
The color silver with an RGB value of #C0C0C0static final Color
Color.SKYBLUE
The color sky blue with an RGB value of #87CEEBstatic final Color
Color.SLATEBLUE
The color slate blue with an RGB value of #6A5ACDstatic final Color
Color.SLATEGRAY
The color slate gray with an RGB value of #708090static final Color
Color.SLATEGREY
The color slate grey with an RGB value of #708090static final Color
Color.SNOW
The color snow with an RGB value of #FFFAFAstatic final Color
Color.SPRINGGREEN
The color spring green with an RGB value of #00FF7Fstatic final Color
Color.STEELBLUE
The color steel blue with an RGB value of #4682B4static final Color
Color.TAN
The color tan with an RGB value of #D2B48Cstatic final Color
Color.TEAL
The color teal with an RGB value of #008080static final Color
Color.THISTLE
The color thistle with an RGB value of #D8BFD8static final Color
Color.TOMATO
The color tomato with an RGB value of #FF6347static final Color
Color.TRANSPARENT
A fully transparent color with an ARGB value of #00000000.static final Color
Color.TURQUOISE
The color turquoise with an RGB value of #40E0D0static final Color
Color.VIOLET
The color violet with an RGB value of #EE82EEstatic final Color
Color.WHEAT
The color wheat with an RGB value of #F5DEB3static final Color
Color.WHITE
The color white with an RGB value of #FFFFFFstatic final Color
Color.WHITESMOKE
The color white smoke with an RGB value of #F5F5F5static final Color
Color.YELLOW
The color yellow with an RGB value of #FFFF00static final Color
Color.YELLOWGREEN
The color yellow green with an RGB value of #9ACD32Modifier and TypeMethodDescriptionColor.brighter()
Creates a new Color that is a brighter version of this Color.static Color
Color.color
(double red, double green, double blue) Creates an opaque sRGB color with the specified red, green and blue values in the range0.0-1.0
.static Color
Color.color
(double red, double green, double blue, double opacity) Creates an sRGB color with the specified red, green and blue values in the range0.0-1.0
, and a given opacity.Color.darker()
Creates a new Color that is a darker version of this Color.Color.deriveColor
(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor) Creates a newColor
based on thisColor
with hue, saturation, brightness and opacity values altered.Color.desaturate()
Creates a new Color that is a less saturated version of this Color.final Color
Stop.getColor()
Gets the color of the gradient at this offset.final Color
PhongMaterial.getDiffuseColor()
Gets the value of thediffuseColor
property.final Color
PhongMaterial.getSpecularColor()
Gets the value of thespecularColor
property.static Color
Color.gray
(double gray) Creates an opaque grey color.static Color
Color.gray
(double gray, double opacity) Creates a grey color.static Color
Color.grayRgb
(int gray) This is a shortcut forrgb(gray, gray, gray)
.static Color
Color.grayRgb
(int gray, double opacity) This is a shortcut forrgb(gray, gray, gray, opacity)
.Color.grayscale()
Creates a new Color that is grayscale equivalent of this Color.static Color
Color.hsb
(double hue, double saturation, double brightness) Creates an opaqueColor
based on the specified values in the HSB color model.static Color
Color.hsb
(double hue, double saturation, double brightness, double opacity) Creates aColor
based on the specified values in the HSB color model, and a given opacity.Color.interpolate
(Color endValue, double t) The function calculates an interpolated value along the fractiont
between0.0
and1.0
.Color.invert()
Creates a new Color that is inversion of this Color.static Color
Color.rgb
(int red, int green, int blue) Creates an opaque sRGB color with the specified RGB values in the range0-255
.static Color
Color.rgb
(int red, int green, int blue, double opacity) Creates an sRGB color with the specified RGB values in the range0-255
, and a given opacity.Color.saturate()
Creates a new Color that is a more saturated version of this Color.static Color
Creates a color value from a string representation.static Color
Creates an RGB color specified with an HTML or CSS attribute string.static Color
Creates an RGB color specified with an HTML or CSS attribute string.Modifier and TypeMethodDescriptionfinal ObjectProperty<Color>
PhongMaterial.diffuseColorProperty()
The diffuse color of thisPhongMaterial
.final ObjectProperty<Color>
PhongMaterial.specularColorProperty()
The specular color of thisPhongMaterial
.Modifier and TypeMethodDescriptionColor.interpolate
(Color endValue, double t) The function calculates an interpolated value along the fractiont
between0.0
and1.0
.final void
PhongMaterial.setDiffuseColor
(Color value) Sets the value of thediffuseColor
property.final void
PhongMaterial.setSpecularColor
(Color value) Sets the value of thespecularColor
property.ModifierConstructorDescriptionPhongMaterial
(Color diffuseColor) Creates a new instance ofPhongMaterial
class using the specified color for itsdiffuseColor
property.PhongMaterial
(Color diffuseColor, Image diffuseMap, Image specularMap, Image bumpMap, Image selfIlluminationMap) Creates a new instance ofPhongMaterial
class using the specified colors and images for itsdiffuseColor
properties.Creates a new instance of Stop. -
Uses of Color in javafx.scene.robot
Modifier and TypeMethodDescriptionRobot.getPixelColor
(double x, double y) Returns theColor
of the pixel at the screen coordinates relative to the primary screen specified bylocation
.Robot.getPixelColor
(Point2D location) Returns theColor
of the pixel at the screen coordinates relative to the primary screen specified bylocation
. -
Uses of Color in javafx.scene.web
Modifier and TypeMethodDescriptionfinal Color
WebView.getPageFill()
Gets the value of thepageFill
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<Color>
WebView.pageFillProperty()
Specifies the background color of the web page.Modifier and TypeMethodDescriptionfinal void
WebView.setPageFill
(Color value) Sets the value of thepageFill
property.