Package cc.mallet.util
Class ColorUtils
- java.lang.Object
-
- cc.mallet.util.ColorUtils
-
public class ColorUtils extends java.lang.Object
Utilities for dealing with RGB-style colors. Created: Mar 30, 2005- Version:
- $Id: ColorUtils.java,v 1.1 2007/10/22 21:37:40 mccallum Exp $
- Author:
-
-
-
Constructor Summary
Constructors Constructor Description ColorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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"
-
-