Class ColorUtils


  • public class ColorUtils
    extends Object
    • Constructor Detail

      • ColorUtils

        public ColorUtils()
    • Method Detail

      • interpolateColors

        public Color[] interpolateColors​(Color[] input,
                                         int colorCount)
        Return an array of colors of the requested length that is created by interpolating the colors provided in the input array. Note that this routine assumes that the input array is smaller than the requested output.
        Parameters:
        input - the input array of colors
        colorCount - the size of the output array
        Returns:
        an array of colors of size colorCount