edu.neu.ccs.gui
Interface PaintAlgorithm


public interface PaintAlgorithm

The interface PaintAlgorithm specifies an algorithm that may be used to define a TexturePaint object; this algorithm should return a Color for each x,y pixel position; this algorithm should be periodic in both the x and y directions.

Since:
2.3.2
Version:
2.3.2

Method Summary
 Color color(int x, int y)
          Returns the Color at pixel position (x, y).
 int xPeriod()
          The x-period which should be positive.
 int yPeriod()
          The y-period which should be positive.
 

Method Detail

color

public Color color(int x,
                   int y)

Returns the Color at pixel position (x, y).

This function should be periodic in both the x and y directions with period xPeriod() in x and period yPeriod() in y.


xPeriod

public int xPeriod()
The x-period which should be positive.


yPeriod

public int yPeriod()
The y-period which should be positive.