Class Color
java.lang.Object
fr.r1r0r0.deltaengine.view.colors.Color
public class Color
extends java.lang.Object
A Color, using RGBA to coding it. You can code all colors you want with.
Converts your Color into JavaFX color.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description javafx.scene.paint.Color
getFXColor()
Returns you JavaFX color converted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
BLACK
-
WHITE
-
RED
-
GREEN
-
BLUE
-
CYAN
-
MAGENTA
-
YELLOW
-
GRAY
-
fxColor
private javafx.scene.paint.Color fxColor
-
-
Constructor Details
-
Color
public Color(int red, int green, int blue, int opacity)Default constructor, allowing to create your color.- Parameters:
red
- red component ranging from 0 to 255green
- green component ranging from 0 to 255blue
- blue component ranging from 0 to 255opacity
- opacity ranging from 0 to 255
-
Color
public Color(int red, int green, int blue)Second constructor, allows omitting opacity.- Parameters:
red
- red component ranging from 0 to 255green
- green component ranging from 0 to 255blue
- blue component ranging from 0 to 255
-
-
Method Details
-
getFXColor
public javafx.scene.paint.Color getFXColor()Returns you JavaFX color converted.- Returns:
- JavaFX Color
-