From ba0ef17b0652dd4f34578f075d5d07894dcde11a Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Thu, 2 Aug 2018 23:34:39 -0600 Subject: [PATCH] Shrink 2x and shift down so we can see the whole set Fix 0x zoom - dividing by 0 is not fun --- render.go | 12 +++++++----- web.go | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/render.go b/render.go index 0f0b945..6b30f73 100644 --- a/render.go +++ b/render.go @@ -18,7 +18,7 @@ import ( ) const ( - Size = 256 + Size = 128 Iterations = (1<<16 - 1) / 128 ) @@ -54,8 +54,8 @@ func computeThread() { for p := range queue { val := mandelbrot( complex( - (float64(p.x)/Size+float64(p.tileX))/float64(uint(1<