Class Color

    • Field Detail

      • BLACK

        public static final Color BLACK
      • WHITE

        public static final Color WHITE
      • BLUE

        public static final Color BLUE
      • GREEN

        public static final Color GREEN
      • RED

        public static final Color RED
    • Constructor Detail

      • Color

        public Color​(int r,
                     int g,
                     int b)
      • Color

        public Color​(double r,
                     double g,
                     double b)
    • Method Detail

      • red

        public float red()
      • green

        public float green()
      • blue

        public float blue()
      • random

        public static Color random()
      • scale

        public Color scale​(float fr,
                           float fg,
                           float fb)
        Returns a copy of this color the values of which are multiplied with the according factors and cropped to 0..1.
        Parameters:
        fr - The factor for red.
        fg - The factor for green.
        fb - The factor for blue.
        Returns:
        scaled copy.