From a3c4d590c471ddf79b204c7039a597b4be264ad9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 28 Apr 2015 13:36:51 +0200 Subject: Initial commit w11 --- Week11 Mandelbrot/src/fractals/Grid.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Week11 Mandelbrot/src/fractals/Grid.java (limited to 'Week11 Mandelbrot/src/fractals/Grid.java') diff --git a/Week11 Mandelbrot/src/fractals/Grid.java b/Week11 Mandelbrot/src/fractals/Grid.java new file mode 100644 index 0000000..be6048b --- /dev/null +++ b/Week11 Mandelbrot/src/fractals/Grid.java @@ -0,0 +1,30 @@ +package fractals; + +/** + * + * @author Sjaak Smetsers + * @version 1.0, 13-03-2013 + */ + +/** + * An interface providing a context for drawing + * pictures pixel-wise + */ +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 (); + +} -- cgit v1.2.3