Class GraphColor
java.lang.Object
com.github.gbenroscience.math.graph.tools.GraphColor
- Author:
- GBEMIRO
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal intstatic final GraphColorThe color black.static final GraphColorThe color black.static final GraphColorThe color blue.static final GraphColorThe color blue.static final GraphColorThe color cyan.static final GraphColorThe color cyan.static final GraphColorThe color dark gray.static final GraphColorThe color dark gray.final intstatic final GraphColorThe color gray.static final GraphColorThe color gray.static final GraphColorThe color green.static final GraphColorThe color green.static final GraphColorThe color light gray.static final GraphColorThe color light gray.static final GraphColorThe color magenta.static final GraphColorThe color magenta.static final GraphColorThe color orange.static final GraphColorThe color orange.static final GraphColorThe color pink.static final GraphColorThe color pink.final intstatic final GraphColorThe color red.static final GraphColorThe color red.static final GraphColorThe color white.static final GraphColorThe color white.static final GraphColorThe color yellow.static final GraphColorThe color yellow. -
Constructor Summary
ConstructorsConstructorDescriptionGraphColor(int red, int green, int blue) GraphColor(int red, int green, int blue, int alpha) -
Method Summary
Modifier and TypeMethodDescriptionbrighter()darker()booleanequals(GraphColor c) intgetAlpha()intgetARGB()static intgetARGB(int r, int g, int b, int alpha) intintstatic intgetPixel(int[] pixels, int width, int x, int y) intintgetRGB()static intgetRGB(int pixels) static intgetRGB(int r, int g, int b)
-
Field Details
-
r
public final int r -
g
public final int g -
b
public final int b -
a
public final int a -
white
The color white. In the default sRGB space. -
WHITE
The color white. In the default sRGB space. -
lightGray
The color light gray. In the default sRGB space. -
LIGHT_GRAY
The color light gray. In the default sRGB space. -
gray
The color gray. In the default sRGB space. -
GRAY
The color gray. In the default sRGB space. -
darkGray
The color dark gray. In the default sRGB space. -
DARK_GRAY
The color dark gray. In the default sRGB space. -
black
The color black. In the default sRGB space. -
BLACK
The color black. In the default sRGB space. -
red
The color red. In the default sRGB space. -
RED
The color red. In the default sRGB space. -
pink
The color pink. In the default sRGB space. -
PINK
The color pink. In the default sRGB space. -
orange
The color orange. In the default sRGB space. -
ORANGE
The color orange. In the default sRGB space. -
yellow
The color yellow. In the default sRGB space. -
YELLOW
The color yellow. In the default sRGB space. -
green
The color green. In the default sRGB space. -
GREEN
The color green. In the default sRGB space. -
magenta
The color magenta. In the default sRGB space. -
MAGENTA
The color magenta. In the default sRGB space. -
cyan
The color cyan. In the default sRGB space. -
CYAN
The color cyan. In the default sRGB space. -
blue
The color blue. In the default sRGB space. -
BLUE
The color blue. In the default sRGB space.
-
-
Constructor Details
-
GraphColor
public GraphColor() -
GraphColor
public GraphColor(int red, int green, int blue) -
GraphColor
public GraphColor(int red, int green, int blue, int alpha)
-
-
Method Details
-
getRedComponent
public int getRedComponent() -
getGreenComponent
public int getGreenComponent() -
getBlueComponent
public int getBlueComponent() -
getAlpha
public int getAlpha() -
getARGB
public int getARGB() -
getRGB
public int getRGB() -
getPixel
public static int getPixel(int[] pixels, int width, int x, int y) -
equals
-
getRGB
public static int getRGB(int r, int g, int b) -
getRGB
public static int getRGB(int pixels) -
getARGB
public static int getARGB(int r, int g, int b, int alpha) -
brighter
-
darker
-