aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Byron <=>2015-07-20 23:55:28 +1000
committerDaniel Byron <=>2015-07-20 23:55:28 +1000
commite0236fb18bb21290768dc05df31369fac1d38f5a (patch)
treec123350a2123e32c7ce4da4e6f834d8e030c474f
parentTweaked values for random image generation to avoid zero sized elements (diff)
downloadschemer2-e0236fb18bb21290768dc05df31369fac1d38f5a.tar.xz
schemer2-e0236fb18bb21290768dc05df31369fac1d38f5a.zip
Fixed minimum size for random stripe generation
-rw-r--r--image.go2
1 files changed, 1 insertions, 1 deletions
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
}