|
||||||||||
| 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
com.threerings.opengl.effect.ColorFunction.Linear
public static class ColorFunction.Linear
A color function that blends linearly between two colors.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.opengl.effect.ColorFunction |
|---|
ColorFunction.Constant, ColorFunction.InAndOut, ColorFunction.Linear, ColorFunction.Multipoint, ColorFunction.ThreePoint |
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary | |
|---|---|
Easing |
easing
The easing function. |
Color4f |
end
The final color. |
Color4f |
start
The starting color. |
| Constructor Summary | |
|---|---|
ColorFunction.Linear()
No-arg constructor for deserialization, etc. |
|
ColorFunction.Linear(ColorFunction function)
Creates a linear function with the other function's start and end. |
|
| Method Summary | |
|---|---|
ColorFunction |
copy(ColorFunction result)
Copies this function. |
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 |
| Field Detail |
|---|
@Editable(mode="%INHERIT%") public Color4f start
@Editable(mode="%INHERIT%") public Color4f end
@Editable public Easing easing
| Constructor Detail |
|---|
public ColorFunction.Linear(ColorFunction function)
public ColorFunction.Linear()
| Method Detail |
|---|
public Color4f getValue(float t,
Color4f result)
ColorFunction
getValue in class ColorFunctionpublic ColorFunction copy(ColorFunction result)
ColorFunction
copy in class ColorFunctionresult - an object to repopulate, if possible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||