Class Color


  • public final class Color
    extends java.lang.Object
    • Field Detail

      • CLEAR

        @NotNull
        public static final @NotNull Color CLEAR
      • BLACK

        @NotNull
        public static final @NotNull Color BLACK
      • WHITE

        @NotNull
        public static final @NotNull Color WHITE
      • LIGHT_GRAY

        @NotNull
        public static final @NotNull Color LIGHT_GRAY
      • GRAY

        @NotNull
        public static final @NotNull Color GRAY
      • DARK_GRAY

        @NotNull
        public static final @NotNull Color DARK_GRAY
      • BLUE

        @NotNull
        public static final @NotNull Color BLUE
      • NAVY

        @NotNull
        public static final @NotNull Color NAVY
      • ROYAL

        @NotNull
        public static final @NotNull Color ROYAL
      • SLATE

        @NotNull
        public static final @NotNull Color SLATE
      • SKY

        @NotNull
        public static final @NotNull Color SKY
      • CYAN

        @NotNull
        public static final @NotNull Color CYAN
      • TEAL

        @NotNull
        public static final @NotNull Color TEAL
      • GREEN

        @NotNull
        public static final @NotNull Color GREEN
      • CHARTREUSE

        @NotNull
        public static final @NotNull Color CHARTREUSE
      • LIME

        @NotNull
        public static final @NotNull Color LIME
      • FOREST

        @NotNull
        public static final @NotNull Color FOREST
      • OLIVE

        @NotNull
        public static final @NotNull Color OLIVE
      • YELLOW

        @NotNull
        public static final @NotNull Color YELLOW
      • GOLD

        @NotNull
        public static final @NotNull Color GOLD
      • GOLDENROD

        @NotNull
        public static final @NotNull Color GOLDENROD
      • ORANGE

        @NotNull
        public static final @NotNull Color ORANGE
      • BROWN

        @NotNull
        public static final @NotNull Color BROWN
      • TAN

        @NotNull
        public static final @NotNull Color TAN
      • FIREBRICK

        @NotNull
        public static final @NotNull Color FIREBRICK
      • RED

        @NotNull
        public static final @NotNull Color RED
      • SCARLET

        @NotNull
        public static final @NotNull Color SCARLET
      • CORAL

        @NotNull
        public static final @NotNull Color CORAL
      • SALMON

        @NotNull
        public static final @NotNull Color SALMON
      • PINK

        @NotNull
        public static final @NotNull Color PINK
      • MAGENTA

        @NotNull
        public static final @NotNull Color MAGENTA
      • PURPLE

        @NotNull
        public static final @NotNull Color PURPLE
      • VIOLET

        @NotNull
        public static final @NotNull Color VIOLET
      • MAROON

        @NotNull
        public static final @NotNull Color MAROON
    • Constructor Detail

      • Color

        public Color​(float red,
                     float green,
                     float blue,
                     float alpha)
      • Color

        public Color​(float red,
                     float green,
                     float blue)
      • Color

        public Color​(float gray)
      • Color

        public Color​(float gray,
                     float alpha)
      • Color

        public Color​(int rgba8888)
    • Method Detail

      • getRed

        public float getRed()
      • getGreen

        public float getGreen()
      • getBlue

        public float getBlue()
      • getAlpha

        public float getAlpha()
      • copy

        @NotNull
        public @NotNull Color copy()
      • copy

        @NotNull
        public @NotNull Color copy​(@Nullable
                                   @Nullable java.lang.Float red,
                                   @Nullable
                                   @Nullable java.lang.Float green,
                                   @Nullable
                                   @Nullable java.lang.Float blue,
                                   @Nullable
                                   @Nullable java.lang.Float alpha)
      • red

        @NotNull
        public @NotNull Color red​(float red)
      • green

        @NotNull
        public @NotNull Color green​(float green)
      • blue

        @NotNull
        public @NotNull Color blue​(float blue)
      • alpha

        @NotNull
        public @NotNull Color alpha​(float alpha)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object