format files

This commit is contained in:
Yongwei Xing 2021-03-02 16:35:43 +08:00
parent 664f27d421
commit 8a8688f56a

View file

@ -92,8 +92,7 @@ func (r *randCircle) circleSliceUpdate(cs []circle, w, h int) []circle {
func (r *randCircle) Generative(c *canva) {
ctex := gg.NewContextForRGBA(c.img)
for j := 0; j<c.opts.nIters; j++ {
for j := 0; j < c.opts.nIters; j++ {
cn := rand.Intn(r.maxCircle) + int(r.maxCircle/3)
circles := r.newCircleSlice(cn, c.width, c.height)