Documentation of 'cc.mallet.util.ColorUtils' Java class
ColorUtils
cc.mallet.util

Class ColorUtils



  • public class ColorUtils
    extends java.lang.Object
    Utilities 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.
      • Methods inherited from class java.lang.Object

        equals, 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"

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.