|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.effect.ColorFunction
@EditorTypes(value={ColorFunction.Constant.class,ColorFunction.Linear.class,ColorFunction.InAndOut.class,ColorFunction.ThreePoint.class,ColorFunction.Multipoint.class})
public abstract class ColorFunctionProvides a color based on a parameter ranging from 0 to 1.
| Nested Class Summary | |
|---|---|
static class |
ColorFunction.Constant
A color function that always returns the same color. |
static class |
ColorFunction.InAndOut
A color function that blends linearly from a start color to an end color, then back to the start color. |
static class |
ColorFunction.Linear
A color function that blends linearly between two colors. |
static class |
ColorFunction.Multipoint
A color function that blends between an arbitrary number of colors. |
static class |
ColorFunction.ThreePoint
A color function that blends linearly from a start color to a middle color, then to an end color. |
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Constructor Summary | |
|---|---|
ColorFunction()
|
|
| Method Summary | |
|---|---|
abstract ColorFunction |
copy(ColorFunction result)
Copies this function. |
abstract Color4f |
getValue(float t,
Color4f result)
Computes the value at the specified time. |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColorFunction()
| Method Detail |
|---|
public abstract Color4f getValue(float t,
Color4f result)
public abstract ColorFunction copy(ColorFunction result)
result - an object to repopulate, if possible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||