From 8a8688f56a3514be8160814d4de0755a3d042fb4 Mon Sep 17 00:00:00 2001 From: Yongwei Xing Date: Tue, 2 Mar 2021 16:35:43 +0800 Subject: [PATCH] format files --- randcircle.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/randcircle.go b/randcircle.go index 2bf9351..cb65278 100644 --- a/randcircle.go +++ b/randcircle.go @@ -19,7 +19,7 @@ type randCircle struct { maxSteps float64 minRadius float64 maxRadius float64 - isRandColor bool + isRandColor bool } func NewRandCicle(mc, msp int, minStep, maxStep, minr, maxr float64, isRandColor bool) *randCircle { @@ -30,7 +30,7 @@ func NewRandCicle(mc, msp int, minStep, maxStep, minr, maxr float64, isRandColor maxSteps: maxStep, minRadius: minr, maxRadius: maxr, - isRandColor: isRandColor, + isRandColor: isRandColor, } } @@ -59,8 +59,8 @@ func (r *randCircle) circleSliceUpdate(cs []circle, w, h int) []circle { var circles []circle for _, c := range cs { - c.x += c.dx - c.y += c.dy + c.x += c.dx + c.y += c.dy if c.x <= 0 { c.x = 0 @@ -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