blob: 9cbae76afd89640146bc98c72ab5a3751367ea05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package fractals;
/**
* An interface providing a context for drawing
* pictures pixel-wise
* @author Sjaak Smetsers
* @version 1.0, 13-03-2013
*/
public interface Grid {
/**
* setPixel puts a pixel on the specified location
* @param x, y coordinates of the location
* @param rgb the color specified as an rgb value
*/
void setPixel (int x, int y, int [] rgb);
/**
* @return the width of the grid
*/
int getWidth ();
/**
* @return the height of the grid
*/
int getHeight ();
}
|