summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/FractalExplorer.jl2
-rw-r--r--src/renderer.jl6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/FractalExplorer.jl b/src/FractalExplorer.jl
index 7a8c206..8894686 100644
--- a/src/FractalExplorer.jl
+++ b/src/FractalExplorer.jl
@@ -1,5 +1,5 @@
module FractalExplorer
-export renderfractal, mandelbrot, julia
+export fractal, mandelbrot, julia
include("fractal.jl")
include("renderer.jl")
end
diff --git a/src/renderer.jl b/src/renderer.jl
index be70ae7..1eb04b2 100644
--- a/src/renderer.jl
+++ b/src/renderer.jl
@@ -3,7 +3,7 @@ using Images
using ImageView
using Color
-function renderfractal(canvas, iterations, make_c, step)
+function fractal(canvas, iterations, make_c, step)
imgsize = get_size(canvas)
img = [ HSV(0, 0, 0) for y=1:imgsize[1], x=1:imgsize[2] ]
view(canvas, img, interactive=false)
@@ -26,9 +26,9 @@ function renderfractal(canvas, iterations, make_c, step)
end
function mandelbrot(canvas, iterations = 45)
- renderfractal(canvas, iterations, z -> z, (z, c) -> z.^2 + c)
+ fractal(canvas, iterations, z -> z, (z, c) -> z.^2 + c)
end
function julia(canvas, iterations = 45, c = 0)
- renderfractal(canvas, iterations, z -> c, (z, c) -> z.^2 + c)
+ fractal(canvas, iterations, z -> c, (z, c) -> z.^2 + c)
end