painter
Class IridescentPainter
java.lang.Object
painter.IridescentPainter
- All Implemented Interfaces:
- IPainter
public class IridescentPainter
- extends java.lang.Object
- implements IPainter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IridescentPainter
public IridescentPainter(IPainter a_,
IPainter b_,
double bias_)
- constructor
- Parameters:
a_
- first painterb_
- second painterbias_
- blending parameter
IridescentPainter
public IridescentPainter(RGBColor colorA_,
RGBColor colorB_,
double bias_)
- constructor
- Parameters:
colorA_
- first colorcolorB_
- second colorbias_
- blending parameter
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