com.threerings.probs
Class ColorFunctionVariable.VariableLinear
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.ColorFunctionVariable
com.threerings.probs.ColorFunctionVariable.VariableLinear
- All Implemented Interfaces:
- Exportable, com.threerings.io.Streamable, Copyable, Cloneable
- Enclosing class:
- ColorFunctionVariable
public static class ColorFunctionVariable.VariableLinear
- extends ColorFunctionVariable
Returns a linear function with independent variable start and end values.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
start
@Editable(mode="%INHERIT%")
public ColorVariable start
- The value to return.
end
@Editable(mode="%INHERIT%")
public ColorVariable end
- The value to return.
easing
@Editable
public Easing easing
- The type of easing to use.
ColorFunctionVariable.VariableLinear
public ColorFunctionVariable.VariableLinear()
getValue
public ColorFunction getValue(ColorFunction result)
- Description copied from class:
ColorFunctionVariable
- Computes a sample value according to the variable's distribution.
- Specified by:
getValue in class ColorFunctionVariable
- 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.