Package sk.tuke.kpi.gamelib.graphics
Class Color
- java.lang.Object
-
- sk.tuke.kpi.gamelib.graphics.Color
-
public final class Color extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static @NotNull Color
BLACK
static @NotNull Color
BLUE
static @NotNull Color
BROWN
static @NotNull Color
CHARTREUSE
static @NotNull Color
CLEAR
static @NotNull Color
CORAL
static @NotNull Color
CYAN
static @NotNull Color
DARK_GRAY
static @NotNull Color
FIREBRICK
static @NotNull Color
FOREST
static @NotNull Color
GOLD
static @NotNull Color
GOLDENROD
static @NotNull Color
GRAY
static @NotNull Color
GREEN
static @NotNull Color
LIGHT_GRAY
static @NotNull Color
LIME
static @NotNull Color
MAGENTA
static @NotNull Color
MAROON
static @NotNull Color
NAVY
static @NotNull Color
OLIVE
static @NotNull Color
ORANGE
static @NotNull Color
PINK
static @NotNull Color
PURPLE
static @NotNull Color
RED
static @NotNull Color
ROYAL
static @NotNull Color
SALMON
static @NotNull Color
SCARLET
static @NotNull Color
SKY
static @NotNull Color
SLATE
static @NotNull Color
TAN
static @NotNull Color
TEAL
static @NotNull Color
VIOLET
static @NotNull Color
WHITE
static @NotNull Color
YELLOW
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Color
alpha(float alpha)
@NotNull Color
blue(float blue)
@NotNull Color
copy()
@NotNull Color
copy(@Nullable java.lang.Float red, @Nullable java.lang.Float green, @Nullable java.lang.Float blue, @Nullable java.lang.Float alpha)
boolean
equals(java.lang.Object obj)
float
getAlpha()
float
getBlue()
float
getGreen()
float
getRed()
@NotNull Color
green(float green)
int
hashCode()
@NotNull Color
red(float red)
java.lang.String
toString()
-
-
-
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
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-