cc.mallet.util
Class ColorUtils
- java.lang.Object
-
- cc.mallet.util.ColorUtils
-
public class ColorUtils extends java.lang.ObjectUtilities for dealing with RGB-style colors. Created: Mar 30, 2005
-
-
Constructor Summary
Constructors Constructor and Description ColorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.String[]rainbow(int n, float s, float b)Returns a list of hex color names of length n.
-
-
-
Method Detail
-
rainbow
public static java.lang.String[] rainbow(int n, float s, float b)Returns a list of hex color names of length n. Colors are generated by equally-spaced hues in HSB space.- Parameters:
n- Number of "equally-spaced" colors to returns- Saturation of generated colorsb- Brightness- Returns:
- An array of hex color names, e.g., "#0033FF"
-
-
DataMelt 3.0 © DataMelt by jWork.ORG