diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-26 11:32:44 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-26 11:32:44 -0400 |
commit | 54a5bb3d9e56bd8290a677ee50700bec422bb94f (patch) | |
tree | bc08ebb537ee63634320e3b13840292ea938cb52 /examples | |
parent | 1efbabec9e6e0863d6c5796b9a5cba2871cad2cc (diff) | |
download | julia-fractals-54a5bb3d9e56bd8290a677ee50700bec422bb94f.tar.gz julia-fractals-54a5bb3d9e56bd8290a677ee50700bec422bb94f.zip |
handle x and y axes properly
julia arrays are stored in column-major order, so the y axis needs to
come first
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mandelbrot.jl | 2 |
1 files changed, 1 insertions, 1 deletions
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 |