diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-26 00:20:22 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-26 00:20:22 -0400 |
commit | 2a174cf7a918637af3f84bf47b2f720dcbc742fe (patch) | |
tree | 8cbeb35ad21272bf59af3feda1cf85fe0fbf7bb7 /src/mandelbrot.jl | |
parent | 3848e2ece1caabc66af3881599e570d752957888 (diff) | |
download | julia-fractals-2a174cf7a918637af3f84bf47b2f720dcbc742fe.tar.gz julia-fractals-2a174cf7a918637af3f84bf47b2f720dcbc742fe.zip |
refactor
this should be able to support both mandelbrot and julia sets
Diffstat (limited to 'src/mandelbrot.jl')
-rw-r--r-- | src/mandelbrot.jl | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mandelbrot.jl b/src/mandelbrot.jl deleted file mode 100644 index 9cddee7..0000000 --- a/src/mandelbrot.jl +++ /dev/null @@ -1,14 +0,0 @@ -type Mandelbrot{T <: FloatingPoint} - c::Array{Complex{T}, 2} - z::Array{Complex{T}, 2} - - Mandelbrot(imgsize) = ( - line = linspace(-2.0, 2.0, imgsize); - plane = [ x + y*im for x=line, y=line ]; - new(plane, plane) - ) -end - -function step{T <: FloatingPoint}(m::Mandelbrot{T}) - m.z = m.z.^2 + m.c -end |