Sfoglia il codice sorgente

image: forgot to use circleCount const in NewImage.

Dmitry Chestnykh 15 anni fa
parent
commit
d6bfb3fd16
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      image.go

+ 1 - 1
image.go

@@ -81,7 +81,7 @@ func NewImage(digits []byte, width, height int) *Image {
 	// Apply wave distortion.
 	img.distort(rndf(5, 10), rndf(100, 200))
 	// Fill image with random circles.
-	img.fillWithCircles(20, img.dotSize)
+	img.fillWithCircles(circleCount, img.dotSize)
 	return img
 }