426

Creating interpolator behaviors
ColorInterpolator class methods

  • ColorInterpolator linearly interpolates a diffuse color (in a red-green-blue color space) from a starting color to an ending color

  • Methods on ColorInterpolator set the value range and target
  • Sets the diffuse color in a Material
  • Method
    ColorInterpolator( Alpha alpha, Material target )
    void setStartColor( Color3f color )
    void setEndColor( Color3f color )
    void setTarget( Material target )