gestalt.shape
Class Color
java.lang.Object
gestalt.shape.Color
- All Implemented Interfaces:
- java.io.Serializable
public class Color
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Field Summary |
float |
a
|
float |
b
|
float |
g
|
float |
r
|
|
Constructor Summary |
Color()
|
Color(Color theColor)
|
Color(float theGrey)
|
Color(float theGrey,
float theAlpha)
|
Color(float theR,
float theG,
float theB)
|
Color(float theR,
float theG,
float theB,
float theA)
|
|
Method Summary |
void |
add(Color theColor)
|
void |
add(float theGrey)
|
void |
add(float[] theColor)
|
void |
add(float theGrey,
float theAlpha)
|
void |
add(float theR,
float theG,
float theB)
|
void |
add(float theR,
float theG,
float theB,
float theA)
|
void |
constrain()
|
java.awt.Color |
createAWTColor()
|
boolean |
equals(Color theColor)
|
Color |
HSL2RGB(Color.HSL c1)
|
void |
mix(float theRatio,
Color theBegin,
Color theEnd)
|
void |
multiply(Color theColor)
|
Color.HSL |
RGB2HSL(Color c1)
|
void |
scale(float theScalar)
|
void |
set(Color theColor)
|
void |
set(float theGrey)
|
void |
set(float[] theColor)
|
void |
set(float theGrey,
float theAlpha)
|
void |
set(float theR,
float theG,
float theB)
|
void |
set(float theR,
float theG,
float theB,
float theA)
|
void |
sub(Color theColor)
|
void |
sub(float theGrey)
|
void |
sub(float[] theColor)
|
void |
sub(float theGrey,
float theAlpha)
|
void |
sub(float theR,
float theG,
float theB)
|
void |
sub(float theR,
float theG,
float theB,
float theA)
|
float[] |
toArray()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
r
public float r
g
public float g
b
public float b
a
public float a
Color
public Color()
Color
public Color(Color theColor)
Color
public Color(float theR,
float theG,
float theB,
float theA)
Color
public Color(float theR,
float theG,
float theB)
Color
public Color(float theGrey)
Color
public Color(float theGrey,
float theAlpha)
set
public void set(Color theColor)
set
public void set(float[] theColor)
set
public void set(float theR,
float theG,
float theB,
float theA)
set
public void set(float theR,
float theG,
float theB)
set
public void set(float theGrey)
set
public void set(float theGrey,
float theAlpha)
add
public void add(Color theColor)
add
public void add(float[] theColor)
add
public void add(float theR,
float theG,
float theB,
float theA)
add
public void add(float theR,
float theG,
float theB)
add
public void add(float theGrey)
add
public void add(float theGrey,
float theAlpha)
sub
public void sub(Color theColor)
sub
public void sub(float[] theColor)
sub
public void sub(float theR,
float theG,
float theB,
float theA)
sub
public void sub(float theR,
float theG,
float theB)
sub
public void sub(float theGrey)
sub
public void sub(float theGrey,
float theAlpha)
multiply
public void multiply(Color theColor)
scale
public final void scale(float theScalar)
constrain
public void constrain()
mix
public void mix(float theRatio,
Color theBegin,
Color theEnd)
toArray
public float[] toArray()
equals
public boolean equals(Color theColor)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
RGB2HSL
public Color.HSL RGB2HSL(Color c1)
HSL2RGB
public Color HSL2RGB(Color.HSL c1)
createAWTColor
public java.awt.Color createAWTColor()
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009