javalib.worldimages
Interface ImageBuilder<OtherInfo>


public interface ImageBuilder<OtherInfo>

A function from (x,y) to Color, suitable for use in the "build" method.

Since:
Dec. 28, 2012
Version:
Feb. 25, 2013
Author:
Stephen Bloch

Method Summary
 Color pixelColor(int x, int y, OtherInfo other)
          Given the location of a pixel, determine what color it should be
 

Method Detail

pixelColor

Color pixelColor(int x,
                 int y,
                 OtherInfo other)
Given the location of a pixel, determine what color it should be

Parameters:
x - the x coordinate of the existing pixel
y - the y coordinate of the existing pixel
other - an arbitrary piece of extra information provided by the caller of "build"
Returns:
a Color to be used in the pixel of the resulting image