Class ColorHarmony
This class provides methods to create sets of colors that work well together, such as complementary, triadic, and analogous schemes, as well as tonal variations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorPaletteanalogous(org.bukkit.Color base) Generates an analogous palette based on the given color.static ColorPalettecomplementary(org.bukkit.Color base) Generates a complementary palette consisting of the base color and its opposite.static ColorPalettemonochromatic(org.bukkit.Color base) Generates a monochromatic palette based on the given color.static ColorPaletteshades(org.bukkit.Color base, int steps) Generates a palette of shades by transitioning the base color toward black.static ColorPalettesplitComplementary(org.bukkit.Color base) Generates a split-complementary palette.static ColorPalettetetradic(org.bukkit.Color base) Generates a tetradic (double-complementary) palette.static ColorPalettetints(org.bukkit.Color base, int steps) Generates a palette of tints by transitioning the base color toward white.static ColorPalettetones(org.bukkit.Color base, int steps) Generates a palette of tones by transitioning the base color toward gray.static ColorPalettetriadic(org.bukkit.Color base) Generates a triadic palette.
-
Constructor Details
-
ColorHarmony
public ColorHarmony()
-
-
Method Details
-
monochromatic
Generates a monochromatic palette based on the given color.Monochromatic schemes are derived from a single base hue and extended using its shades, tones, and tints.
- Parameters:
base- The baseColorto use as the root of the palette.- Returns:
- A
ColorPalettecontaining monochromatic variations.
-
analogous
Generates an analogous palette based on the given color.Analogous colors are groups of colors that are adjacent to each other on the color wheel, typically creating serene and comfortable designs.
- Parameters:
base- The baseColorto use.- Returns:
- A
ColorPalettecontaining the base and its neighbors.
-
complementary
Generates a complementary palette consisting of the base color and its opposite.Complementary colors provide high contrast and high impact when used together.
- Parameters:
base- The baseColorto use.- Returns:
- A
ColorPalettecontaining the base and its complement.
-
splitComplementary
Generates a split-complementary palette.This uses a base color and the two colors adjacent to its complement. It provides high contrast but with less tension than a standard complementary scheme.
- Parameters:
base- The baseColorto use.- Returns:
- A
ColorPalettecontaining split-complementary colors.
-
triadic
Generates a triadic palette.Triadic harmonies use three colors that are evenly spaced (120 degrees apart) around the color wheel, tending to be quite vibrant.
- Parameters:
base- The baseColorto use.- Returns:
- A
ColorPalettecontaining triadic variations.
-
tetradic
Generates a tetradic (double-complementary) palette.This scheme uses four colors arranged into two complementary pairs, offering plenty of possibilities for variation.
- Parameters:
base- The baseColorto use.- Returns:
- A
ColorPalettecontaining tetradic variations.
-
shades
Generates a palette of shades by transitioning the base color toward black.- Parameters:
base- The baseColorto shade.steps- The number of steps (colors) in the resulting palette.- Returns:
- A
ColorPaletterepresenting the transition to black.
-
tints
Generates a palette of tints by transitioning the base color toward white.- Parameters:
base- The baseColorto tint.steps- The number of steps (colors) in the resulting palette.- Returns:
- A
ColorPaletterepresenting the transition to white.
-
tones
Generates a palette of tones by transitioning the base color toward gray.- Parameters:
base- The baseColorto tone.steps- The number of steps (colors) in the resulting palette.- Returns:
- A
ColorPaletterepresenting the transition to gray.
-