Uses of Class
javafx.scene.paint.Color
-
Packages that use Color 软件包 描述 javafx.animation 提供一组类,便于使用基于过渡的动画。javafx.css 提供API,通过CSS使属性变得风格,并支持伪类状态。javafx.css.converter 提供各种转换CSS解析值的StyleConverter
类。javafx.scene 为JavaFX Scene Graph API提供核心的基类集。javafx.scene.control JavaFX用户界面控件(UI控件或仅控件)是JavaFX场景中的专用节点,特别适用于许多不同应用程序环境中的重用。javafx.scene.control.skin javafx.scene.control.skin包是皮肤类(通常每个UI控件一个)所在的位置javafx.scene.effect 提供一组用于将图形过滤效果附加到JavaFX Scene Graph节点的类。javafx.scene.image 提供加载和显示图像的一组类。javafx.scene.paint 提供用于在渲染场景图时填充形状和背景的颜色和渐变类的集合。 -
-
Uses of Color in javafx.animation
Methods in javafx.animation that return Color Modifier and Type 方法 描述 Color
FillTransition. getFromValue()
获取属性fromValue的值。Color
StrokeTransition. getFromValue()
获取属性fromValue的值。Color
FillTransition. getToValue()
获取属性值到值。Color
StrokeTransition. getToValue()
获取属性值到值。Methods in javafx.animation that return types with arguments of type Color Modifier and Type 方法 描述 ObjectProperty<Color>
FillTransition. fromValueProperty()
指定此FillTransition
的起始颜色值。ObjectProperty<Color>
StrokeTransition. fromValueProperty()
指定此StrokeTransition
的起始颜色值。ObjectProperty<Color>
FillTransition. toValueProperty()
指定此FillTransition
的停止颜色值。ObjectProperty<Color>
StrokeTransition. toValueProperty()
指定此StrokeTransition
的停止颜色值。Methods in javafx.animation with parameters of type Color Modifier and Type 方法 描述 void
FillTransition. setFromValue(Color value)
设置属性fromValue的值。void
StrokeTransition. setFromValue(Color value)
设置属性fromValue的值。void
FillTransition. setToValue(Color value)
将属性的值设置为Value。void
StrokeTransition. setToValue(Color value)
将属性的值设置为Value。Constructors in javafx.animation with parameters of type Color Constructor 描述 FillTransition(Duration duration, Color fromValue, Color toValue)
构造函数为FillTransition
FillTransition(Duration duration, Shape shape, Color fromValue, Color toValue)
构造函数FillTransition
StrokeTransition(Duration duration, Color fromValue, Color toValue)
构造函数为StrokeTransition
StrokeTransition(Duration duration, Shape shape, Color fromValue, Color toValue)
构造函数为StrokeTransition
-
Uses of Color in javafx.css
Methods in javafx.css that return types with arguments of type Color Modifier and Type 方法 描述 CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function)
创建一个CssMetaData <S,Color>,初始值为Color.BLACK,并继承标志默认为false。CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue)
创建具有初始值的CssMetaData <S,Color>,并将标志默认为false。CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
创建具有初始值的CssMetaData <S,Color>并继承标志。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty)
使用之前创建的CssMetaData为给定的cssProperty
创建一个StyleableProperty <Color>。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function)
创建一个StyleableProperty <Color>。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)
创建一个具有初始值的StyleableProperty <Color>。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
创建一个具有初始值的StyleableProperty <Color>并继承标志。static StyleConverter<String,Color>
StyleConverter. getColorConverter()
返回一个StyleConverter
,将Web颜色的String表示形式转换为Color
。Methods in javafx.css with parameters of type Color Modifier and Type 方法 描述 CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue)
创建具有初始值的CssMetaData <S,Color>,并将标志默认为false。CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
创建具有初始值的CssMetaData <S,Color>并继承标志。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)
创建一个具有初始值的StyleableProperty <Color>。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
创建一个具有初始值的StyleableProperty <Color>并继承标志。Method parameters in javafx.css with type arguments of type Color Modifier and Type 方法 描述 CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function)
创建一个CssMetaData <S,Color>,初始值为Color.BLACK,并继承标志默认为false。CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue)
创建具有初始值的CssMetaData <S,Color>,并将标志默认为false。CssMetaData<S,Color>
StyleablePropertyFactory. createColorCssMetaData(String property, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
创建具有初始值的CssMetaData <S,Color>并继承标志。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function)
创建一个StyleableProperty <Color>。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)
创建一个具有初始值的StyleableProperty <Color>。StyleableProperty<Color>
StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue, boolean inherits)
创建一个具有初始值的StyleableProperty <Color>并继承标志。 -
Uses of Color in javafx.css.converter
Methods in javafx.css.converter that return Color Modifier and Type 方法 描述 Color
ColorConverter. convert(ParsedValue<String,Color> value, Font font)
Color
DeriveColorConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)
Color
LadderConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)
Methods in javafx.css.converter that return types with arguments of type Color Modifier and Type 方法 描述 static StyleConverter<String,Color>
ColorConverter. getInstance()
Method parameters in javafx.css.converter with type arguments of type Color Modifier and Type 方法 描述 Color
ColorConverter. convert(ParsedValue<String,Color> value, Font font)
Color
DeriveColorConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)
Color
LadderConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)
-
Uses of Color in javafx.scene
Methods in javafx.scene that return Color Modifier and Type 方法 描述 Color
LightBase. getColor()
获取属性颜色的值。Methods in javafx.scene that return types with arguments of type Color Modifier and Type 方法 描述 ObjectProperty<Color>
LightBase. colorProperty()
指定光源的颜色。Methods in javafx.scene with parameters of type Color Modifier and Type 方法 描述 void
LightBase. setColor(Color value)
设置属性颜色的值。Constructors in javafx.scene with parameters of type Color Constructor 描述 AmbientLight(Color color)
使用指定的颜色创建一个新的AmbientLight
类的实例。LightBase(Color color)
使用指定的颜色创建一个新的LightBase
类的实例。PointLight(Color color)
使用指定的颜色创建PointLight
类的新实例。 -
Uses of Color in javafx.scene.control
Methods in javafx.scene.control that return types with arguments of type Color Modifier and Type 方法 描述 ObservableList<Color>
ColorPicker. getCustomColors()
获取用户添加到调色板的自定义颜色列表。Constructors in javafx.scene.control with parameters of type Color Constructor 描述 ColorPicker(Color color)
创建一个ColorPicker实例,并将所选颜色设置为给定的颜色。 -
Uses of Color in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return types with arguments of type Color Modifier and Type 方法 描述 protected StringConverter<Color>
ColorPickerSkin. getConverter()
子类负责获取转换器。 -
Uses of Color in javafx.scene.effect
Methods in javafx.scene.effect that return Color Modifier and Type 方法 描述 Color
DropShadow. getColor()
获取属性颜色的值。Color
InnerShadow. getColor()
获取属性颜色的值。Color
Light. getColor()
获取属性颜色的值。Color
Shadow. getColor()
获取属性颜色的值。Methods in javafx.scene.effect that return types with arguments of type Color Modifier and Type 方法 描述 ObjectProperty<Color>
DropShadow. colorProperty()
阴影Color
。ObjectProperty<Color>
InnerShadow. colorProperty()
阴影Color
。ObjectProperty<Color>
Light. colorProperty()
光源的颜色。ObjectProperty<Color>
Shadow. colorProperty()
阴影Color
。Methods in javafx.scene.effect with parameters of type Color Modifier and Type 方法 描述 void
DropShadow. setColor(Color value)
设置属性颜色的值。void
InnerShadow. setColor(Color value)
设置属性颜色的值。void
Light. setColor(Color value)
设置属性颜色的值。void
Shadow. setColor(Color value)
设置属性颜色的值。Constructors in javafx.scene.effect with parameters of type Color Constructor 描述 Distant(double azimuth, double elevation, Color color)
创建一个新的具有指定方位角,高程和颜色的远光的实例。DropShadow(double radius, double offsetX, double offsetY, Color color)
以指定的半径,offsetX,offsetY和颜色创建一个新的DropShadow实例。DropShadow(double radius, Color color)
创建一个具有指定半径和颜色的DropShadow的新实例。DropShadow(BlurType blurType, Color color, double radius, double spread, double offsetX, double offsetY)
使用指定的blurType,color,radius,spread,offsetX和offsetY创建一个新的DropShadow实例。InnerShadow(double radius, double offsetX, double offsetY, Color color)
创建一个新的具有指定半径,offsetX,offsetY和color的InnerShadow实例。InnerShadow(double radius, Color color)
创建一个新的具有指定半径和颜色的InnerShadow实例。InnerShadow(BlurType blurType, Color color, double radius, double choke, double offsetX, double offsetY)
使用指定的blurType,color,radius,spread,offsetX和offsetY创建一个新的InnerShadow实例。Point(double x, double y, double z, Color color)
用指定的x,y,x和color创建一个新的点光实例。Shadow(double radius, Color color)
用指定的半径和颜色创建一个新的Shadow实例。Shadow(BlurType blurType, Color color, double radius)
用指定的blurType,color,radius创建一个新的Shadow实例。Spot(double x, double y, double z, double specularExponent, Color color)
使用指定的x,y,z,specularExponent和color创建一个新的Spotlight实例。 -
Uses of Color in javafx.scene.image
Methods in javafx.scene.image that return Color Modifier and Type 方法 描述 Color
PixelReader. getColor(int x, int y)
从表面的指定坐标读取像素的颜色,并将该值作为Color
对象返回。Methods in javafx.scene.image with parameters of type Color Modifier and Type 方法 描述 void
PixelWriter. setColor(int x, int y, Color c)
将Color
的像素数据存储到表面的指定坐标。 -
Uses of Color in javafx.scene.paint
Fields in javafx.scene.paint declared as Color Modifier and Type Field 描述 static Color
Color. ALICEBLUE
颜色为蓝绿色,RGB值为#F0F8FFstatic Color
Color. ANTIQUEWHITE
颜色古色古香的白色,RGB值为#FAEBD7static Color
Color. AQUA
颜色水彩,RGB值为#00FFFFstatic Color
Color. AQUAMARINE
RGB值为#7FFFD4的彩色海蓝宝石static Color
Color. AZURE
RGB值为#F0FFFF的颜色天蓝色static Color
Color. BEIGE
颜色米色,RGB值为#F5F5DCstatic Color
Color. BISQUE
RGB值为#FFE4C4的彩色色差static Color
Color. BLACK
颜色为黑色,RGB值为#000000static Color
Color. BLANCHEDALMOND
颜色变白的杏仁,RGB值为#FFEBCDstatic Color
Color. BLUE
颜色蓝色,RGB值为#0000FFstatic Color
Color. BLUEVIOLET
RGB值为#8A2BE2的蓝色紫色static Color
Color. BROWN
颜色棕色,RGB值为#A52A2Astatic Color
Color. BURLYWOOD
颜色粗糙的木材,RGB值为#DEB887static Color
Color. CADETBLUE
颜色学员蓝色,RGB值为#5F9EA0static Color
Color. CHARTREUSE
RGB值为#7FFF00的颜色表格static Color
Color. CHOCOLATE
颜色巧克力,RGB值为#D2691Estatic Color
Color. CORAL
颜色珊瑚,RGB值为#FF7F50static Color
Color. CORNFLOWERBLUE
颜色矢车菊蓝色,RGB值为#6495EDstatic Color
Color. CORNSILK
具有RGB值为#FFF8DC的颜色cornsilkstatic Color
Color. CRIMSON
颜色深红色,RGB值为#DC143Cstatic Color
Color. CYAN
颜色青色,RGB值为#00FFFFstatic Color
Color. DARKBLUE
颜色深蓝色,RGB值为#00008Bstatic Color
Color. DARKCYAN
颜色深蓝色,RGB值为#008B8Bstatic Color
Color. DARKGOLDENROD
颜色深黄色,RGB值为#B8860Bstatic Color
Color. DARKGRAY
颜色深灰色,RGB值为#A9A9A9static Color
Color. DARKGREEN
颜色深绿色,RGB值为#006400static Color
Color. DARKGREY
颜色深灰色,RGB值为#A9A9A9static Color
Color. DARKKHAKI
颜色深色卡其色,RGB值为#BDB76Bstatic Color
Color. DARKMAGENTA
RGB值为#8B008B的深色洋红色static Color
Color. DARKOLIVEGREEN
颜色深绿橄榄绿,RGB值为#556B2Fstatic Color
Color. DARKORANGE
颜色深橙色,RGB值为#FF8C00static Color
Color. DARKORCHID
颜色深蓝色,RGB值为#9932CCstatic Color
Color. DARKRED
颜色深红色,RGB值为#8B0000static Color
Color. DARKSALMON
颜色深色鲑鱼,RGB值为#E9967Astatic Color
Color. DARKSEAGREEN
颜色深绿色,RGB值为#8FBC8Fstatic Color
Color. DARKSLATEBLUE
颜色深蓝色,RGB值为#483D8Bstatic Color
Color. DARKSLATEGRAY
颜色深灰色,RGB值为#2F4F4Fstatic Color
Color. DARKSLATEGREY
颜色深灰色,RGB值为#2F4F4Fstatic Color
Color. DARKTURQUOISE
颜色深蓝绿色,RGB值为#00CED1static Color
Color. DARKVIOLET
颜色深紫色,RGB值为#9400D3static Color
Color. DEEPPINK
颜色深粉红色,RGB值为#FF1493static Color
Color. DEEPSKYBLUE
颜色深蓝色,RGB值为#00BFFFstatic Color
Color. DIMGRAY
颜色变暗,RGB值为#696969static Color
Color. DIMGREY
颜色变暗,RGB值为#696969static Color
Color. DODGERBLUE
颜色闪烁蓝色,RGB值为#1E90FFstatic Color
Color. FIREBRICK
颜色耐火砖,RGB值为#B22222static Color
Color. FLORALWHITE
颜色花白色,RGB值为#FFFAF0static Color
Color. FORESTGREEN
颜色森林绿色,RGB值为#228B22static Color
Color. FUCHSIA
颜色紫红色,RGB值为#FF00FFstatic Color
Color. GAINSBORO
RGB值为#DCDCDC的彩色增益static Color
Color. GHOSTWHITE
颜色为Ghost的白色,RGB值为#F8F8FFstatic Color
Color. GOLD
彩色金色,RGB值为#FFD700static Color
Color. GOLDENROD
颜色金色,RGB值为#DAA520static Color
Color. GRAY
颜色为灰色,RGB值为#808080static Color
Color. GREEN
颜色绿色,RGB值为#008000static Color
Color. GREENYELLOW
颜色为绿色黄色,RGB值为#ADFF2Fstatic Color
Color. GREY
颜色为灰色,RGB值为#808080static Color
Color. HONEYDEW
彩色蜜汁,RGB值为#F0FFF0static Color
Color. HOTPINK
颜色热粉红色,RGB值为#FF69B4static Color
Color. INDIANRED
彩色印度红色,RGB值为#CD5C5Cstatic Color
Color. INDIGO
RGB值为#4B0082的彩色靛蓝static Color
Color. IVORY
颜色象牙,RGB值为#FFFFF0static Color
Color. KHAKI
颜色卡其色,RGB值为#F0E68Cstatic Color
Color. LAVENDER
彩色薰衣草,RGB值为#E6E6FAstatic Color
Color. LAVENDERBLUSH
颜色薰衣草腮红,RGB值为#FFF0F5static Color
Color. LAWNGREEN
颜色草坪绿色,RGB值为#7CFC00static Color
Color. LEMONCHIFFON
颜色柠檬雪纺,RGB值为#FFFACDstatic Color
Color. LIGHTBLUE
颜色浅蓝色,RGB值为#ADD8E6static Color
Color. LIGHTCORAL
彩色珊瑚,RGB值为#F08080static Color
Color. LIGHTCYAN
颜色浅蓝色,RGB值为#E0FFFFstatic Color
Color. LIGHTGOLDENRODYELLOW
颜色浅黄色,RGB值为#FAFAD2static Color
Color. LIGHTGRAY
颜色浅灰色,RGB值为#D3D3D3static Color
Color. LIGHTGREEN
颜色浅绿色,RGB值为#90EE90static Color
Color. LIGHTGREY
颜色浅灰色,RGB值为#D3D3D3static Color
Color. LIGHTPINK
颜色浅粉红色,RGB值为#FFB6C1static Color
Color. LIGHTSALMON
RGB值为#FFA07A的彩色三文鱼static Color
Color. LIGHTSEAGREEN
颜色浅绿色,RGB值为#20B2AAstatic Color
Color. LIGHTSKYBLUE
彩色天空蓝色,RGB值为#87CEFAstatic Color
Color. LIGHTSLATEGRAY
颜色浅灰色,RGB值为#778899static Color
Color. LIGHTSLATEGREY
颜色浅灰色,RGB值为#778899static Color
Color. LIGHTSTEELBLUE
颜色浅蓝色,RGB值为#B0C4DEstatic Color
Color. LIGHTYELLOW
颜色浅黄色,RGB值为#FFFFE0static Color
Color. LIME
RGB灰度值为#00FF00static Color
Color. LIMEGREEN
灰绿色,RGB值为#32CD32static Color
Color. LINEN
颜色亚麻布,RGB值为#FAF0E6static Color
Color. MAGENTA
颜色洋红色,RGB值为#FF00FFstatic Color
Color. MAROON
颜色栗色,RGB值为#800000static Color
Color. MEDIUMAQUAMARINE
彩色介质海蓝宝石,RGB值为#66CDAAstatic Color
Color. MEDIUMBLUE
颜色中等蓝色,RGB值为#0000CDstatic Color
Color. MEDIUMORCHID
颜色中等兰花,RGB值为#BA55D3static Color
Color. MEDIUMPURPLE
颜色中等紫色,RGB值为#9370DBstatic Color
Color. MEDIUMSEAGREEN
彩色中型海绿,RGB值为#3CB371static Color
Color. MEDIUMSLATEBLUE
彩色介质为蓝色,RGB值为#7B68EEstatic Color
Color. MEDIUMSPRINGGREEN
彩色介质弹簧绿色,RGB值为#00FA9Astatic Color
Color. MEDIUMTURQUOISE
颜色介质绿松石,RGB值为#48D1CCstatic Color
Color. MEDIUMVIOLETRED
颜色中等紫色,RGB值为#C71585static Color
Color. MIDNIGHTBLUE
颜色为午夜蓝色,RGB值为#191970static Color
Color. MINTCREAM
颜色薄荷奶油,RGB值为#F5FFFAstatic Color
Color. MISTYROSE
颜色朦胧,RGB值为#FFE4E1static Color
Color. MOCCASIN
颜色莫卡辛,RGB值为#FFE4B5static Color
Color. NAVAJOWHITE
颜色navajo白色,RGB值为#FFDEADstatic Color
Color. NAVY
RGB值为#000080的彩色海军static Color
Color. OLDLACE
颜色旧花边,RGB值为#FDF5E6static Color
Color. OLIVE
颜色橄榄,RGB值为#808000static Color
Color. OLIVEDRAB
彩色橄榄色,RGB值为#6B8E23static Color
Color. ORANGE
颜色为橙色,RGB值为#FFA500static Color
Color. ORANGERED
颜色橙红色,RGB值为#FF4500static Color
Color. ORCHID
颜色兰花,RGB值为#DA70D6static Color
Color. PALEGOLDENROD
颜色淡黄色,RGB值为#EEE8AAstatic Color
Color. PALEGREEN
颜色淡绿色,RGB值为#98FB98static Color
Color. PALETURQUOISE
颜色淡绿色,RGB值为#AFEEEEstatic Color
Color. PALEVIOLETRED
颜色为淡紫色,RGB值为#DB7093static Color
Color. PAPAYAWHIP
颜色番木瓜鞭,RGB值为#FFEFD5static Color
Color. PEACHPUFF
彩色桃红色,其值为#FFDAB9static Color
Color. PERU
颜色为紫色,RGB值为#CD853Fstatic Color
Color. PINK
颜色粉红色,RGB值为#FFC0CBstatic Color
Color. PLUM
颜色李子,RGB值为#DDA0DDstatic Color
Color. POWDERBLUE
彩色蓝色,RGB值为#B0E0E6static Color
Color. PURPLE
颜色为紫色,RGB值为#800080static Color
Color. RED
颜色红色,RGB值为#FF0000static Color
Color. ROSYBROWN
颜色玫瑰色棕色,RGB值为#BC8F8Fstatic Color
Color. ROYALBLUE
颜色为皇家蓝色,RGB值为#4169E1static Color
Color. SADDLEBROWN
颜色马鞍棕色,RGB值为#8B4513static Color
Color. SALMON
颜色三文鱼的RGB值为#FA8072static Color
Color. SANDYBROWN
颜色沙棕色,RGB值为#F4A460static Color
Color. SEAGREEN
颜色海绿色,RGB值为#2E8B57static Color
Color. SEASHELL
颜色海壳,RGB值为#FFF5EEstatic Color
Color. SIENNA
颜色赭色,RGB值为#A0522Dstatic Color
Color. SILVER
颜色银,RGB值为#C0C0C0static Color
Color. SKYBLUE
颜色天蓝色,RGB值为#87CEEBstatic Color
Color. SLATEBLUE
颜色为蓝色,RGB值为#6A5ACDstatic Color
Color. SLATEGRAY
颜色为灰色,RGB值为#708090static Color
Color. SLATEGREY
颜色为灰色,RGB值为#708090static Color
Color. SNOW
RGB值为#FFFAFA的彩色雪static Color
Color. SPRINGGREEN
颜色为绿色,RGB值为#00FF7Fstatic Color
Color. STEELBLUE
颜色钢蓝色,RGB值为#4682B4static Color
Color. TAN
颜色为棕褐色,RGB值为#D2B48Cstatic Color
Color. TEAL
颜色深蓝色,RGB值为#008080static Color
Color. THISTLE
颜色蓟,RGB值为#D8BFD8static Color
Color. TOMATO
颜色番茄,RGB值为#FF6347static Color
Color. TRANSPARENT
ARGB值为#00000000的完全透明的颜色。static Color
Color. TURQUOISE
颜色绿松石,RGB值为#40E0D0static Color
Color. VIOLET
颜色紫色,RGB值为#EE82EEstatic Color
Color. WHEAT
RGB值为#F5DEB3的彩色小麦static Color
Color. WHITE
颜色为白色,RGB值为#FFFFFFstatic Color
Color. WHITESMOKE
彩色白色烟雾,RGB值为#F5F5F5static Color
Color. YELLOW
颜色为黄色,RGB值为#FFFF00static Color
Color. YELLOWGREEN
颜色黄绿色,RGB值为#9ACD32Methods in javafx.scene.paint that return Color Modifier and Type 方法 描述 Color
Color. brighter()
创建一个这种颜色更亮的新颜色。static Color
Color. color(double red, double green, double blue)
使用指定的红色,绿色和蓝色值创建不透明的sRGB颜色,范围为0.0-1.0
。static Color
Color. color(double red, double green, double blue, double opacity)
使用指定的红色,绿色和蓝色值创建sRGB颜色,范围0.0-1.0
和给定的不透明度。Color
Color. darker()
创建一个这种颜色较暗版本的新颜色。Color
Color. deriveColor(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor)
基于这个Color
创建一个新的Color
,其色调,饱和度,亮度和不透明度值被改变。Color
Color. desaturate()
创建一个不太饱和的Color颜色的新颜色。Color
Stop. getColor()
获取此偏移量的渐变颜色。Color
PhongMaterial. getDiffuseColor()
获取属性diffuseColor的值。Color
PhongMaterial. getSpecularColor()
获取属性specularColor的值。static Color
Color. gray(double gray)
创建不透明的灰色。static Color
Color. gray(double gray, double opacity)
创建灰色。static Color
Color. grayRgb(int gray)
这是rgb(gray, gray, gray)
的快捷方式。static Color
Color. grayRgb(int gray, double opacity)
这是rgb(gray, gray, gray, opacity)
的快捷方式。Color
Color. grayscale()
创建一个与此颜色相当的灰度等级的新颜色。static Color
Color. hsb(double hue, double saturation, double brightness)
根据HSB颜色模型中的指定值创建不透明的Color
。static Color
Color. hsb(double hue, double saturation, double brightness, double opacity)
根据HSB颜色模型中指定的值和给定的不透明度创建Color
。Color
Color. interpolate(Color endValue, double t)
该函数计算0.0
与1.0
之间的分数t
的内插值。Color
Color. invert()
创建一个反映此颜色的新颜色。static Color
Color. rgb(int red, int green, int blue)
使用指定的RGB值创建不透明的sRGB颜色,范围为0-255
。static Color
Color. rgb(int red, int green, int blue, double opacity)
使用指定的RGB值创建sRGB颜色,范围为0-255
,以及给定的不透明度。Color
Color. saturate()
创建一个这个颜色的更饱和版本的新颜色。static Color
Color. valueOf(String value)
从字符串表示形式创建颜色值。static Color
Color. web(String colorString)
创建使用HTML或CSS属性字符串指定的RGB颜色。static Color
Color. web(String colorString, double opacity)
创建使用HTML或CSS属性字符串指定的RGB颜色。Methods in javafx.scene.paint that return types with arguments of type Color Modifier and Type 方法 描述 ObjectProperty<Color>
PhongMaterial. diffuseColorProperty()
这个漫反射的颜色PhongMaterial
。ObjectProperty<Color>
PhongMaterial. specularColorProperty()
这个镜面颜色是PhongMaterial
。Methods in javafx.scene.paint with parameters of type Color Modifier and Type 方法 描述 Color
Color. interpolate(Color endValue, double t)
该函数计算0.0
和1.0
之间的分数t
的内插值。void
PhongMaterial. setDiffuseColor(Color value)
设置属性diffuseColor的值。void
PhongMaterial. setSpecularColor(Color value)
设置属性specularColor的值。Constructors in javafx.scene.paint with parameters of type Color Constructor 描述 PhongMaterial(Color diffuseColor)
使用指定的颜色为其diffuseColor
属性创建一个新的实例PhongMaterial
类。PhongMaterial(Color diffuseColor, Image diffuseMap, Image specularMap, Image bumpMap, Image selfIlluminationMap)
使用指定的颜色和图像为其diffuseColor
属性创建一个新的实例PhongMaterial
类。Stop(double offset, Color color)
创建一个新的Stop实例。
-