Package dev.brachtendorf.graphics
Class ColorUtil.ColorPalette
- java.lang.Object
-
- dev.brachtendorf.graphics.ColorUtil.ColorPalette
-
-
Constructor Summary
Constructors Constructor Description ColorPalette()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javafx.scene.paint.Color[]getPalette(int numColors)Return a default palette from blue to orange using rgba interpolationstatic javafx.scene.paint.Color[]getPalette(int numColors, javafx.scene.paint.Color startColor, javafx.scene.paint.Color endColor)Create a color palette using rgba interpolationstatic javafx.scene.paint.Color[]getPaletteHue(int numColors)Create a color palette with the hue component being altered instead of the individual rgb components.static javafx.scene.paint.Color[]getPaletteHue(int numColors, javafx.scene.paint.Color startColor, javafx.scene.paint.Color endColor)Create a color palette with the hue component being altered instead of the individual rgb components.
-
-
-
Method Detail
-
getPalette
public static javafx.scene.paint.Color[] getPalette(int numColors)
Return a default palette from blue to orange using rgba interpolation- Parameters:
numColors- the number of colors present in the returned array- Returns:
- A color array with
- Since:
- 1.0.0 com.github.kilianB
-
getPalette
public static javafx.scene.paint.Color[] getPalette(int numColors, javafx.scene.paint.Color startColor, javafx.scene.paint.Color endColor)Create a color palette using rgba interpolation- Parameters:
numColors- The number of colors present in the returned arraystartColor- The color of the first indexendColor- The color of the last index- Returns:
- An array containing the interpolated colors
- Since:
- 1.0.0 com.github.kilianB
-
getPaletteHue
public static javafx.scene.paint.Color[] getPaletteHue(int numColors)
Create a color palette with the hue component being altered instead of the individual rgb components.getPalette(int).- Parameters:
numColors- The number of colors present in the returned array- Returns:
- An array containing the interpolated colors
- Since:
- 1.0.0 com.github.kilianB
-
getPaletteHue
public static javafx.scene.paint.Color[] getPaletteHue(int numColors, javafx.scene.paint.Color startColor, javafx.scene.paint.Color endColor)Create a color palette with the hue component being altered instead of the individual rgb components.getPalette(int).- Parameters:
numColors- The number of colors present in the returned arraystartColor- The color of the first indexendColor- The color of the last index- Returns:
- An array containing the interpolated colors
- Since:
- 1.0.0 com.github.kilianB
-
-