painter
Class IridescentPainter

java.lang.Object
  extended by painter.IridescentPainter
All Implemented Interfaces:
IPainter

public class IridescentPainter
extends java.lang.Object
implements IPainter


Constructor Summary
IridescentPainter(IPainter a_, IPainter b_, double bias_)
          constructor
IridescentPainter(RGBColor colorA_, RGBColor colorB_, double bias_)
          constructor
 
Method Summary
 RGBColor getColor(IntersectionInfo ri)
           
 IPainter getCopy()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IridescentPainter

public IridescentPainter(IPainter a_,
                         IPainter b_,
                         double bias_)
constructor

Parameters:
a_ - first painter
b_ - second painter
bias_ - blending parameter

IridescentPainter

public IridescentPainter(RGBColor colorA_,
                         RGBColor colorB_,
                         double bias_)
constructor

Parameters:
colorA_ - first color
colorB_ - second color
bias_ - blending parameter
Method Detail

getColor

public RGBColor getColor(IntersectionInfo ri)
Specified by:
getColor in interface IPainter
Returns:
the computed color as an RGBColor

getCopy

public IPainter getCopy()
Specified by:
getCopy in interface IPainter
Returns:
a copy of the painter