Fix randomColor func

This commit is contained in:
Weilin Shi 2018-06-12 11:06:37 +08:00
parent 1284662a43
commit fc4a5d0dfc
1 changed files with 3 additions and 3 deletions

View File

@ -182,9 +182,9 @@ func drawNoise(img *image.NRGBA, opts *Options) {
} }
func randomColor() color.RGBA { func randomColor() color.RGBA {
red := rng.Intn(255) red := rng.Intn(256)
green := rng.Intn(255) green := rng.Intn(256)
blue := rng.Intn(255) blue := rng.Intn(256)
return color.RGBA{R: uint8(red), G: uint8(green), B: uint8(blue), A: uint8(255)} return color.RGBA{R: uint8(red), G: uint8(green), B: uint8(blue), A: uint8(255)}
} }