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

    Fields
    Modifier and Type Field Description
    static Color BLACK  
    static Color BLUE  
    static Color CYAN  
    private javafx.scene.paint.Color fxColor  
    static Color GRAY  
    static Color GREEN  
    static Color MAGENTA  
    static Color RED  
    static Color WHITE  
    static Color YELLOW  
  • Constructor Summary

    Constructors
    Constructor Description
    Color​(int red, int green, int blue)
    Second constructor, allows omitting opacity.
    Color​(int red, int green, int blue, int opacity)
    Default constructor, allowing to create your color.
  • 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

      public static final Color BLACK
    • WHITE

      public static final Color WHITE
    • RED

      public static final Color RED
    • GREEN

      public static final Color GREEN
    • BLUE

      public static final Color BLUE
    • CYAN

      public static final Color CYAN
    • MAGENTA

      public static final Color MAGENTA
    • YELLOW

      public static final Color YELLOW
    • GRAY

      public static final Color 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 255
      green - green component ranging from 0 to 255
      blue - blue component ranging from 0 to 255
      opacity - 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 255
      green - green component ranging from 0 to 255
      blue - blue component ranging from 0 to 255
  • Method Details

    • getFXColor

      public javafx.scene.paint.Color getFXColor()
      Returns you JavaFX color converted.
      Returns:
      JavaFX Color