From 59a42d4ccd885fbb364afd9f24b2254637ca7f67 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 28 Oct 2014 13:11:27 -0400 Subject: render at a higher resolution and scale down this is how we make the image not look so pixelated --- src/renderer.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/renderer.jl b/src/renderer.jl index 34a53c4..30750e8 100644 --- a/src/renderer.jl +++ b/src/renderer.jl @@ -9,7 +9,7 @@ type FractalCanvas image::Array{HSV{Float64}, 2} function FractalCanvas(c::Canvas, bb::Base.Graphics.BoundingBox, make_c::Function, step::Function) - winsize = tuple(get_size(c)...) + winsize = tuple((get_size(c) * 2)...) f = FractalExplorer.Fractal{Float64}(winsize, bb, make_c, step) image = [ HSV(0, 0, 0) for y=1:winsize[2], x=1:winsize[1] ] fc = new(c, f, image) @@ -25,7 +25,7 @@ type FractalCanvas bind(c, "", (path,x,y)->fractal(c, make_c, step, false)) c.mouse.button1press = function(c, x, y) function rubberband_end(c, bb) - (size_x, size_y) = tuple(get_size(c)...) + (size_x, size_y) = tuple((get_size(c) * 2)...) win_aspect_ratio = size_x / size_y box_aspect_ratio = (bb.xmax - bb.xmin) / (bb.ymax - bb.ymin) line_x = linspace(fc.f.bb.xmin, fc.f.bb.xmax, size_x) -- cgit v1.2.3-54-g00ecf