com.threerings.opengl.effect
Class ColorFunction.Multipoint.Point

java.lang.Object
  extended by com.threerings.opengl.effect.ColorFunction.Multipoint.Point
All Implemented Interfaces:
Exportable, Streamable
Enclosing class:
ColorFunction.Multipoint

public static class ColorFunction.Multipoint.Point
extends Object
implements Exportable, Streamable

A single point to blend between.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 Color4f color
          The color of the point.
 float offset
          The time offset of the point.
 
Constructor Summary
ColorFunction.Multipoint.Point()
          No-arg constructor for deserialization, etc.
ColorFunction.Multipoint.Point(Color4f color, float offset)
          Creates a new point with the given color and offset.
 
Method Summary
 void set(ColorFunction.Multipoint.Point other)
          Copies the fields of another point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

@Editable(mode="%INHERIT%")
public Color4f color
The color of the point.


offset

@Editable(min=0.0,
          max=1.0,
          step=0.01)
public float offset
The time offset of the point.

Constructor Detail

ColorFunction.Multipoint.Point

public ColorFunction.Multipoint.Point(Color4f color,
                                      float offset)
Creates a new point with the given color and offset.


ColorFunction.Multipoint.Point

public ColorFunction.Multipoint.Point()
No-arg constructor for deserialization, etc.

Method Detail

set

public void set(ColorFunction.Multipoint.Point other)
Copies the fields of another point.