diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-26 10:25:56 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-26 10:25:56 -0400 |
commit | f6438aa63834ed6ed577863133d2ca01700f2f1f (patch) | |
tree | 70ec5946cfe0ce738f11c5dda05efe9f78e602dd /examples | |
parent | fb9498f1295089ac50c65d9ea826bc26acb521b0 (diff) | |
download | julia-fractals-f6438aa63834ed6ed577863133d2ca01700f2f1f.tar.gz julia-fractals-f6438aa63834ed6ed577863133d2ca01700f2f1f.zip |
handle non-square windows
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mandelbrot.jl | 4 |
1 files changed, 2 insertions, 2 deletions
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) |