format files

This commit is contained in:
Yongwei Xing 2021-03-02 17:11:48 +08:00
parent 05f31aca8e
commit 6a5ef90802

View file

@ -34,7 +34,7 @@ func (s *sileSmoke) Generative(c *canva) {
cn := rand.Intn(s.maxCircle) + int(s.maxCircle/3) cn := rand.Intn(s.maxCircle) + int(s.maxCircle/3)
circles := newCircleSlice(cn, c.width, c.height, s.minSteps, s.maxSteps, s.minRadius, s.maxRadius) circles := newCircleSlice(cn, c.width, c.height, s.minSteps, s.maxSteps, s.minRadius, s.maxRadius)
for i :=0; i<s.maxStepsPerCircle; i++ { for i := 0; i < s.maxStepsPerCircle; i++ {
ctex.SetRGBA255(0, 0, 0, 5) ctex.SetRGBA255(0, 0, 0, 5)
ctex.DrawRectangle(0, 0, float64(c.width), float64(c.height)) ctex.DrawRectangle(0, 0, float64(c.width), float64(c.height))
ctex.Fill() ctex.Fill()
@ -72,4 +72,4 @@ func (s *sileSmoke) Generative(c *canva) {
circles = circleSliceUpdate(circles, c.width, c.height) circles = circleSliceUpdate(circles, c.width, c.height)
} }
} }