Package smile.plot.swing
Interface Palette
public interface Palette
Color palette generator.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
static final Color
static final Color
static final Color
static final Color
static final Color[]
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
-
Method Summary
Modifier and TypeMethodDescriptionstatic Color[]
heat
(int n) Generate heat color palette.static Color[]
heat
(int n, float alpha) Generate heat color palette.static Color
hsv
(float h, float s, float v, float alpha) Generate a color based on HSV model.static Color[]
jet
(int n) Generate jet color palette.static Color[]
jet
(int n, float alpha) Generate jet color palette.static Color[]
rainbow
(int n) Generate rainbow color palette.static Color[]
rainbow
(int n, float alpha) Generate rainbow color palette.static Color[]
rainbow
(int n, float start, float end, float alpha) Generate rainbow color palette.static Color[]
rainbow
(int n, float start, float end, float s, float v, float alpha) Generate rainbow color palette.static Color[]
redblue
(int n) Generate red-blue color palette.static Color[]
redblue
(int n, float alpha) Generate red-blue color palette.static Color[]
redgreen
(int n) Generate red-green color palette.static Color[]
redgreen
(int n, float alpha) Generate red-green color palette.static Color[]
terrain
(int n) Generate terrain color palette.static Color[]
terrain
(int n, float alpha) Generate terrain color palette.static Color[]
topo
(int n) Generate topo color palette.static Color[]
topo
(int n, float alpha) Generate topo color palette.
-
Field Details
-
WHITE
-
BLACK
-
LIGHT_GRAY
-
DARK_GRAY
-
SLATE_GRAY
-
LIGHT_SLATE_GRAY
-
DARK_SLATE_GRAY
-
RED
-
DARK_RED
-
VIOLET_RED
-
GREEN
-
DARK_GREEN
-
LIGHT_GREEN
-
PASTEL_GREEN
-
FOREST_GREEN
-
GRASS_GREEN
-
BLUE
-
NAVY_BLUE
-
SLATE_BLUE
-
ROYAL_BLUE
-
CADET_BLUE
-
MIDNIGHT_BLUE
-
SKY_BLUE
-
STEEL_BLUE
-
DARK_BLUE
-
MAGENTA
-
DARK_MAGENTA
-
CYAN
-
DARK_CYAN
-
PURPLE
-
LIGHT_PURPLE
-
DARK_PURPLE
-
ORANGE
-
PINK
-
YELLOW
-
GOLD
-
BROWN
-
SALMON
-
TURQUOISE
-
BURGUNDY
-
PLUM
-
COLORS
-
-
Method Details
-
terrain
Generate terrain color palette.- Parameters:
n
- the number of colors in the palette.
-
terrain
Generate terrain color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
topo
Generate topo color palette.- Parameters:
n
- the number of colors in the palette.
-
topo
Generate topo color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
jet
Generate jet color palette.- Parameters:
n
- the number of colors in the palette.
-
jet
Generate jet color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
redgreen
Generate red-green color palette.- Parameters:
n
- the number of colors in the palette.
-
redgreen
Generate red-green color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
redblue
Generate red-blue color palette.- Parameters:
n
- the number of colors in the palette.
-
redblue
Generate red-blue color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
heat
Generate heat color palette.- Parameters:
n
- the number of colors in the palette.
-
heat
Generate heat color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
rainbow
Generate rainbow color palette.- Parameters:
n
- the number of colors in the palette.
-
rainbow
Generate rainbow color palette.- Parameters:
n
- the number of colors in the palette.alpha
- the parameter in [0,1] for transparency.
-
rainbow
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
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
Generate a color based on HSV model.
-