aboutsummaryrefslogtreecommitdiff
path: root/Week11 Mandelbrot/src/fractals/GridFiller.java
diff options
context:
space:
mode:
authorCamil Staps2015-04-29 22:37:13 +0200
committerCamil Staps2015-04-29 22:37:13 +0200
commit57cc1163708260f3e4f5b56cc1de2ad2ee625018 (patch)
treec865e7c5ad8db5bf4e3846395e55046a9bc2263f /Week11 Mandelbrot/src/fractals/GridFiller.java
parentBugfix drawing zoom rectangle (diff)
cleanup
Diffstat (limited to 'Week11 Mandelbrot/src/fractals/GridFiller.java')
-rw-r--r--Week11 Mandelbrot/src/fractals/GridFiller.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/Week11 Mandelbrot/src/fractals/GridFiller.java b/Week11 Mandelbrot/src/fractals/GridFiller.java
deleted file mode 100644
index 73b422e..0000000
--- a/Week11 Mandelbrot/src/fractals/GridFiller.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package fractals;
-
-/**
- *
- * @author Sjaak Smetsers
-** @version 1.0, 13-03-2013
- */
-
-/**
- * A skeleton class illustrating the use of the grid interface
- *
- */
-public class GridFiller {
- private Grid grid; // the grid to be filled
- private ColorTable colorTable; // a table for converting indexes to
- // rgb values
-
- /**
- * The constructor
- * @param grid to be filled
- */
- public GridFiller (Grid grid) {
- colorTable = new ColorTable (30); // some random value, needs to be adjusted
- this.grid = grid;
- }
-
- /**
- * fills the whole grid with some arbitrarily chosen color
- *
- */
- public void fill () {
- int grid_w = grid.getWidth(), grid_h = grid.getHeight();
- for (int i = 0; i < grid_w; i++) {
- for (int j = 0; j < grid_h; j++) {
- int color_index = i/5 * grid_w/5 + j/5;
- grid.setPixel(i, j, colorTable.getColor(color_index));
- }
- }
- }
-}