Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
  `ColorUtils()`

  Method Summary
  `static java.lang.String[]` | `rainbow(int n, float s, float b)` Returns a list of hex color names of length n.

  Methods inherited from class java.lang.Object
  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  Constructor Detail

  ### ColorUtils

      public ColorUtils()

  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 return
      `s` - Saturation of generated colors
      `b` - Brightness
    Returns:
      An array of hex color names, e.g., "#0033FF"

  Overview | Package | Class | Use | Tree | Deprecated | Index | Help
  PREV CLASS NEXT CLASS | FRAMES NO FRAMES
  SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD