From b2515749aef7d6f0f8adbbc47d8ad7aa6cb929d3 Mon Sep 17 00:00:00 2001 From: MashPotato Date: Wed, 22 Feb 2023 13:10:59 -0700 Subject: [PATCH] high res is cool and all, it's really killing perf --- render.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render.go b/render.go index 11f3824..035c86d 100644 --- a/render.go +++ b/render.go @@ -22,9 +22,9 @@ import ( ) const ( - Size = 512 + Size = 128 //Iterations = (1<<16 - 1) / 256 - Iterations = (1<<16 - 1) / 128 + Iterations = (1<<16 - 1) / 64 ) var ( @@ -71,7 +71,7 @@ func computeThread() { } } -//interpolateColors accepts a color palette and number of desired colors and builds a slice of colors by interpolating the gaps +// interpolateColors accepts a color palette and number of desired colors and builds a slice of colors by interpolating the gaps func interpolateColors(paletteCode string, numberOfColors float64) []color.RGBA { var factor float64 steps := []float64{}