Class ColorUtil.ColorPalette

  • Enclosing class:
    ColorUtil

    public static class ColorUtil.ColorPalette
    extends Object
    • 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 interpolation
      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
      static 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.
    • Constructor Detail

      • ColorPalette

        public ColorPalette()
    • 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 array
        startColor - The color of the first index
        endColor - 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 array
        startColor - The color of the first index
        endColor - The color of the last index
        Returns:
        An array containing the interpolated colors
        Since:
        1.0.0 com.github.kilianB