Package org.cytoscape.util.color
Class ColorUtils
- java.lang.Object
-
- org.cytoscape.util.color.ColorUtils
-
public class ColorUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ColorUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 colorscolorCount
- the size of the output array- Returns:
- an array of colors of size colorCount
-
-