From a8486d63d6649a7bd9cfabedcf164afa3ccfedd6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 27 Oct 2014 12:21:42 -0400 Subject: rename this function --- src/FractalExplorer.jl | 2 +- src/renderer.jl | 6 +++--- 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 -- cgit v1.2.3-54-g00ecf