com.threerings.probs
Class ColorVariable
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.ColorVariable
- All Implemented Interfaces:
- Exportable, Streamable, Copyable, Cloneable
- Direct Known Subclasses:
- ColorVariable.Constant, ColorVariable.Uniform
@EditorTypes(value={ColorVariable.Constant.class,ColorVariable.Uniform.class},
label="distribution")
public abstract class ColorVariable- extends DeepObject
- implements Exportable, Streamable
A color-valued random variable.
ColorVariable
public ColorVariable()
getValue
public abstract Color4f getValue(Color4f result)
- Computes a sample value according to the variable's distribution.
- Returns:
- a reference to the result value, for chaining.
getMean
public abstract Color4f getMean(Color4f result)
- Computes the mean value.
- Returns:
- a reference to the result value, for chaining.