Interface Palette


public interface Palette
Color palette generator.
  • Field Details

    • WHITE

      static final Color WHITE
    • BLACK

      static final Color BLACK
    • LIGHT_GRAY

      static final Color LIGHT_GRAY
    • DARK_GRAY

      static final Color DARK_GRAY
    • SLATE_GRAY

      static final Color SLATE_GRAY
    • LIGHT_SLATE_GRAY

      static final Color LIGHT_SLATE_GRAY
    • DARK_SLATE_GRAY

      static final Color DARK_SLATE_GRAY
    • RED

      static final Color RED
    • DARK_RED

      static final Color DARK_RED
    • VIOLET_RED

      static final Color VIOLET_RED
    • GREEN

      static final Color GREEN
    • DARK_GREEN

      static final Color DARK_GREEN
    • LIGHT_GREEN

      static final Color LIGHT_GREEN
    • PASTEL_GREEN

      static final Color PASTEL_GREEN
    • FOREST_GREEN

      static final Color FOREST_GREEN
    • GRASS_GREEN

      static final Color GRASS_GREEN
    • BLUE

      static final Color BLUE
    • SLATE_BLUE

      static final Color SLATE_BLUE
    • ROYAL_BLUE

      static final Color ROYAL_BLUE
    • CADET_BLUE

      static final Color CADET_BLUE
    • MIDNIGHT_BLUE

      static final Color MIDNIGHT_BLUE
    • SKY_BLUE

      static final Color SKY_BLUE
    • STEEL_BLUE

      static final Color STEEL_BLUE
    • DARK_BLUE

      static final Color DARK_BLUE
    • MAGENTA

      static final Color MAGENTA
    • DARK_MAGENTA

      static final Color DARK_MAGENTA
    • CYAN

      static final Color CYAN
    • DARK_CYAN

      static final Color DARK_CYAN
    • PURPLE

      static final Color PURPLE
    • LIGHT_PURPLE

      static final Color LIGHT_PURPLE
    • DARK_PURPLE

      static final Color DARK_PURPLE
    • ORANGE

      static final Color ORANGE
    • PINK

      static final Color PINK
    • YELLOW

      static final Color YELLOW
    • GOLD

      static final Color GOLD
    • BROWN

      static final Color BROWN
    • SALMON

      static final Color SALMON
    • TURQUOISE

      static final Color TURQUOISE
    • BURGUNDY

      static final Color BURGUNDY
    • PLUM

      static final Color PLUM
    • COLORS

      static final Color[] COLORS
  • Method Details

    • terrain

      static Color[] terrain(int n)
      Generate terrain color palette.
      Parameters:
      n - the number of colors in the palette.
    • terrain

      static Color[] terrain(int n, float alpha)
      Generate terrain color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • topo

      static Color[] topo(int n)
      Generate topo color palette.
      Parameters:
      n - the number of colors in the palette.
    • topo

      static Color[] topo(int n, float alpha)
      Generate topo color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • jet

      static Color[] jet(int n)
      Generate jet color palette.
      Parameters:
      n - the number of colors in the palette.
    • jet

      static Color[] jet(int n, float alpha)
      Generate jet color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • redgreen

      static Color[] redgreen(int n)
      Generate red-green color palette.
      Parameters:
      n - the number of colors in the palette.
    • redgreen

      static Color[] redgreen(int n, float alpha)
      Generate red-green color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • redblue

      static Color[] redblue(int n)
      Generate red-blue color palette.
      Parameters:
      n - the number of colors in the palette.
    • redblue

      static Color[] redblue(int n, float alpha)
      Generate red-blue color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • heat

      static Color[] heat(int n)
      Generate heat color palette.
      Parameters:
      n - the number of colors in the palette.
    • heat

      static Color[] heat(int n, float alpha)
      Generate heat color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • rainbow

      static Color[] rainbow(int n)
      Generate rainbow color palette.
      Parameters:
      n - the number of colors in the palette.
    • rainbow

      static Color[] rainbow(int n, float alpha)
      Generate rainbow color palette.
      Parameters:
      n - the number of colors in the palette.
      alpha - the parameter in [0,1] for transparency.
    • rainbow

      static Color[] rainbow(int n, float start, float end, float alpha)
      Generate rainbow color palette.
      Parameters:
      n - the number of colors in the palette.
      start - the start of h in the HSV color model.
      end - the start of h in the HSV color model.
      alpha - the parameter in [0,1] for transparency.
    • rainbow

      static Color[] rainbow(int n, float start, float end, float s, float v, float alpha)
      Generate rainbow color palette.
      Parameters:
      n - the number of colors in the palette.
      start - the start of h in the HSV color model.
      end - the start of h in the HSV color model.
      s - the s in the HSV color model.
      v - the v in the HSV color model.
      alpha - the parameter in [0,1] for transparency.
    • hsv

      static Color hsv(float h, float s, float v, float alpha)
      Generate a color based on HSV model.