Class SolidColor

    • Constructor Detail

      • SolidColor

        public SolidColor​(String color)
        Constructs a new color from a hex value like "#ff0000" for red.
        Parameters:
        color -
      • SolidColor

        public SolidColor​(int red,
                          int green,
                          int blue)
        Constructs a color from RGB values
        Parameters:
        red - Red value (0...255)
        green - Green value (0...255)
        blue - Blue value (0...255)
      • SolidColor

        public SolidColor​(int red,
                          int green,
                          int blue,
                          double opacity)
        Constructs a color from RGBA values
        Parameters:
        red - Red value (0...255)
        green - Green value (0...255)
        blue - Blue value (0...255)
        opacity - Opacity of color (0.0 ... 1.0)