From 54a5bb3d9e56bd8290a677ee50700bec422bb94f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 26 Oct 2014 11:32:44 -0400 Subject: handle x and y axes properly julia arrays are stored in column-major order, so the y axis needs to come first --- examples/mandelbrot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/mandelbrot.jl b/examples/mandelbrot.jl index 9e8f9fe..c73f2c9 100644 --- a/examples/mandelbrot.jl +++ b/examples/mandelbrot.jl @@ -7,7 +7,7 @@ using FractalExplorer iterations = 45 imgsize = (640, 480) -imgc, imgslice = view([ HSV(0, 0, 0) for x=1:imgsize[1], y=1:imgsize[2] ]) +imgc, imgslice = view([ HSV(0, 0, 0) for y=1:imgsize[2], x=1:imgsize[1] ]) FractalExplorer.render(imgc, iterations) #If we are not in a REPL -- cgit v1.2.3-54-g00ecf