diff options
author | Camil Staps | 2015-04-28 13:36:51 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-28 13:36:51 +0200 |
commit | a3c4d590c471ddf79b204c7039a597b4be264ad9 (patch) | |
tree | 800c93ba842b1e8ab64fc28b33eb5cdd8986d165 /Week11 Mandelbrot/src/fractals/Grid.java | |
parent | Added assignment week 10 (diff) |
Initial commit w11
Diffstat (limited to 'Week11 Mandelbrot/src/fractals/Grid.java')
-rw-r--r-- | Week11 Mandelbrot/src/fractals/Grid.java | 30 |
1 files changed, 30 insertions, 0 deletions
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 ();
+
+}
|