com.threerings.opengl.effect
Class ColorFunction.Constant
java.lang.Object
com.threerings.util.DeepObject
com.threerings.opengl.effect.ColorFunction
com.threerings.opengl.effect.ColorFunction.Constant
- All Implemented Interfaces:
- Exportable, com.threerings.io.Streamable, Copyable, Cloneable
- Enclosing class:
- ColorFunction
public static class ColorFunction.Constant
- extends ColorFunction
A color function that always returns the same color.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
value
@Editable(mode="%INHERIT%")
public Color4f value
- The constant value.
ColorFunction.Constant
public ColorFunction.Constant(ColorFunction function)
- Creates a constant function with the other function's middle.
ColorFunction.Constant
public ColorFunction.Constant()
- No-arg constructor for deserialization, etc.
getValue
public Color4f getValue(float t,
Color4f result)
- Description copied from class:
ColorFunction
- Computes the value at the specified time.
- Specified by:
getValue in class ColorFunction
- Returns:
- a reference to the result color, for chaining.
copy
public ColorFunction copy(ColorFunction result)
- Description copied from class:
ColorFunction
- Copies this function.
- Specified by:
copy in class ColorFunction
- Parameters:
result - an object to repopulate, if possible.
- Returns:
- either the result object, if it could be repopulated, or a new object containing the
result.
Copyright © 2011. All Rights Reserved.