From f6438aa63834ed6ed577863133d2ca01700f2f1f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 26 Oct 2014 10:25:56 -0400 Subject: handle non-square windows --- examples/mandelbrot.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/mandelbrot.jl') diff --git a/examples/mandelbrot.jl b/examples/mandelbrot.jl index b580478..2a0aa29 100644 --- a/examples/mandelbrot.jl +++ b/examples/mandelbrot.jl @@ -5,9 +5,9 @@ using ImageView using FractalExplorer iterations = 45 -imgsize = 500 +imgsize = (640, 480) -img = [ Color.HSV(0, 0, 0) for x=1:imgsize, y=1:imgsize ] +img = [ Color.HSV(0, 0, 0) for x=1:imgsize[1], y=1:imgsize[2] ] mandelbrot = FractalExplorer.Fractal{Float64}(imgsize) imgc, imgslice = view(img) -- cgit v1.2.3-54-g00ecf