Skip to content

Commit

Permalink
Merge pull request #6 from tobynet/fix-universe-size
Browse files Browse the repository at this point in the history
Fix the size of the universe
  • Loading branch information
mattn committed Sep 12, 2019
2 parents a7f504f + 19ea98b commit 08de1c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit 08de1c0

Please sign in to comment.