Class GraphColor

java.lang.Object
com.github.gbenroscience.math.graph.tools.GraphColor

public class GraphColor extends Object
Author:
GBEMIRO
  • Field Details

    • r

      public final int r
    • g

      public final int g
    • b

      public final int b
    • a

      public final int a
    • white

      public static final GraphColor white
      The color white. In the default sRGB space.
    • WHITE

      public static final GraphColor WHITE
      The color white. In the default sRGB space.
    • lightGray

      public static final GraphColor lightGray
      The color light gray. In the default sRGB space.
    • LIGHT_GRAY

      public static final GraphColor LIGHT_GRAY
      The color light gray. In the default sRGB space.
    • gray

      public static final GraphColor gray
      The color gray. In the default sRGB space.
    • GRAY

      public static final GraphColor GRAY
      The color gray. In the default sRGB space.
    • darkGray

      public static final GraphColor darkGray
      The color dark gray. In the default sRGB space.
    • DARK_GRAY

      public static final GraphColor DARK_GRAY
      The color dark gray. In the default sRGB space.
    • black

      public static final GraphColor black
      The color black. In the default sRGB space.
    • BLACK

      public static final GraphColor BLACK
      The color black. In the default sRGB space.
    • red

      public static final GraphColor red
      The color red. In the default sRGB space.
    • RED

      public static final GraphColor RED
      The color red. In the default sRGB space.
    • pink

      public static final GraphColor pink
      The color pink. In the default sRGB space.
    • PINK

      public static final GraphColor PINK
      The color pink. In the default sRGB space.
    • orange

      public static final GraphColor orange
      The color orange. In the default sRGB space.
    • ORANGE

      public static final GraphColor ORANGE
      The color orange. In the default sRGB space.
    • yellow

      public static final GraphColor yellow
      The color yellow. In the default sRGB space.
    • YELLOW

      public static final GraphColor YELLOW
      The color yellow. In the default sRGB space.
    • green

      public static final GraphColor green
      The color green. In the default sRGB space.
    • GREEN

      public static final GraphColor GREEN
      The color green. In the default sRGB space.
    • magenta

      public static final GraphColor magenta
      The color magenta. In the default sRGB space.
    • MAGENTA

      public static final GraphColor MAGENTA
      The color magenta. In the default sRGB space.
    • cyan

      public static final GraphColor cyan
      The color cyan. In the default sRGB space.
    • CYAN

      public static final GraphColor CYAN
      The color cyan. In the default sRGB space.
    • blue

      public static final GraphColor blue
      The color blue. In the default sRGB space.
    • BLUE

      public static final GraphColor 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

      public boolean equals(GraphColor c)
    • 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

      public GraphColor brighter()
    • darker

      public GraphColor darker()