diff options
| author | Daniel Byron <=> | 2015-07-20 23:55:28 +1000 |
|---|---|---|
| committer | Daniel Byron <=> | 2015-07-20 23:55:28 +1000 |
| commit | e0236fb18bb21290768dc05df31369fac1d38f5a (patch) | |
| tree | c123350a2123e32c7ce4da4e6f834d8e030c474f | |
| parent | Tweaked values for random image generation to avoid zero sized elements (diff) | |
| download | schemer2-e0236fb18bb21290768dc05df31369fac1d38f5a.tar.xz schemer2-e0236fb18bb21290768dc05df31369fac1d38f5a.zip | |
Fixed minimum size for random stripe generation
| -rw-r--r-- | image.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |