Class ColorUtils

java.lang.Object
org.cytoscape.util.color.ColorUtils

public class ColorUtils extends Object
  • Constructor Details

    • ColorUtils

      public ColorUtils()
  • Method Details

    • 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