From e0236fb18bb21290768dc05df31369fac1d38f5a Mon Sep 17 00:00:00 2001 From: Daniel Byron <=> Date: Mon, 20 Jul 2015 23:55:28 +1000 Subject: Fixed minimum size for random stripe generation --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index a461213..246bd48 100644 --- a/image.go +++ b/image.go @@ -318,7 +318,7 @@ func randomImage(colors []color.Color, w int, h int) image.Image { case 1: return Rays(colors, w, h, rand.Intn(h/32)+1, rand.Intn(h/32), randBool(), true, randBool()) case 2: - return Lines(colors, w, h, rand.Intn(h/32), rand.Intn(h/32), randBool(), randBool(), rand.Intn(h/32), rand.Intn(h/2)+1) + return Lines(colors, w, h, rand.Intn(h/32)+1, rand.Intn(h/32), randBool(), randBool(), rand.Intn(h/32), rand.Intn(h/2)+1) } return nil } -- cgit v1.2.3