Package org.cytoscape.util.color
Class ColorUtils
java.lang.Object
org.cytoscape.util.color.ColorUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionColor[]
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.
-
Constructor Details
-
ColorUtils
public ColorUtils()
-
-
Method Details
-
interpolateColors
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
-