From 19ea98bc51ee6a4299d6462d021ac4e20f6ad658 Mon Sep 17 00:00:00 2001 From: tobynet Date: Thu, 12 Sep 2019 06:47:21 +0900 Subject: [PATCH] Fix the size of the universe --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 34ec17c..ddc5ad9 100644 --- a/main.go +++ b/main.go @@ -70,7 +70,8 @@ func main() { img3 = imaging.FlipH(img3) } - rect := image.Rect(0, 0, img1.Bounds().Dx()*ncolumns, img1.Bounds().Dy()+img2.Bounds().Dy()*nlong+img3.Bounds().Dy()) + width := int(float64(img1.Bounds().Dx()*(ncolumns-1))*rinterval) + img1.Bounds().Dx() + rect := image.Rect(0, 0, width, img1.Bounds().Dy()+img2.Bounds().Dy()*nlong+img3.Bounds().Dy()) canvas := image.NewRGBA(rect) for col := 0; col < ncolumns; col++ {