org.novyon.noise
Class Color

java.lang.Object
  extended by org.novyon.noise.Color

public class Color
extends Object

Helper class for working with colors and gradients

Author:
Anthyon

Constructor Summary
Color()
           
Color(float r, float g, float b)
           
Color(float r, float g, float b, float a)
           
Color(int h, float s, float b)
           
Color(int h, float s, float b, float a)
           
Color(int r, int g, int b)
           
Color(int r, int g, int b, int a)
           
 
Method Summary
 Color toGrayscale()
           
 int toInteger()
           
 Color toSepia()
           
 String toWeb()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Color

public Color()

Color

public Color(int r,
             int g,
             int b)

Color

public Color(int r,
             int g,
             int b,
             int a)

Color

public Color(float r,
             float g,
             float b)

Color

public Color(float r,
             float g,
             float b,
             float a)

Color

public Color(int h,
             float s,
             float b)

Color

public Color(int h,
             float s,
             float b,
             float a)
Method Detail

toInteger

public int toInteger()

toWeb

public String toWeb()

toGrayscale

public Color toGrayscale()

toSepia

public Color toSepia()


Copyright © 2011. All Rights Reserved.