painter
Class CheckerPainter
java.lang.Object
painter.CheckerPainter
- All Implemented Interfaces:
- IPainter
public class CheckerPainter
- extends java.lang.Object
- implements IPainter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckerPainter
public CheckerPainter(IPainter a,
IPainter b,
double size)
- constructor
- Parameters:
a
- painter of the "white" fieldsb
- painter of the "black" fieldssize
- tiling (size of on tile)
CheckerPainter
public CheckerPainter(RGBColor a,
RGBColor b,
double size)
- constructor
- Parameters:
a
- color of the "white" fieldsb
- color of the "black" fieldssize
- tiling (size of on tile)
getColor
public RGBColor getColor(IntersectionInfo intersection)
- 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