|
||||||||||
| 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.InAndOut
public static class ColorFunction.InAndOut
A color function that blends linearly from a start color to an end color, then back to the start color.
| 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 | |
|---|---|
Color4f |
end
The target color. |
float |
in
The proportional time to spend blending into the target color. |
float |
out
The proportional time to spend blending back to the start color. |
Color4f |
start
The starting and ending color. |
| Constructor Summary | |
|---|---|
ColorFunction.InAndOut()
No-arg constructor for deserialization, etc. |
|
ColorFunction.InAndOut(ColorFunction.ThreePoint function)
Creates an in-and-out function with the other function's parameters. |
|
ColorFunction.InAndOut(ColorFunction function)
Creates an in-and-out 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(min=0.0,
max=1.0,
step=0.01)
public float in
@Editable(min=0.0,
max=1.0,
step=0.01)
public float out
| Constructor Detail |
|---|
public ColorFunction.InAndOut(ColorFunction function)
public ColorFunction.InAndOut(ColorFunction.ThreePoint function)
public ColorFunction.InAndOut()
| 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 | |||||||||