update the swirl image

This commit is contained in:
Yongwei Xing 2021-03-04 14:06:30 +08:00
parent c85e0b7a5c
commit 41b5da304d
4 changed files with 4 additions and 3 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View file

@ -12,8 +12,8 @@ func main() {
c := generativeart.NewCanva(1600, 1600)
c.SetBackground(generativeart.Azure)
c.FillBackground()
c.SetForeground(color.RGBA{113, 3, 0, 180})
c.SetIterations(8000000)
c.Draw(generativeart.NewSwirl(0.970, -1.899, -1.381, -1.506, 2.0, 2.0))
c.SetForeground(color.RGBA{113, 3, 0, 140})
c.SetIterations(4000000)
c.Draw(generativeart.NewSwirl(0.970, -1.899, 1.381, -1.506, 2.4, 2.4))
c.ToPNG("swirl.png")
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 KiB

After

Width:  |  Height:  |  Size: 301 KiB

View file

@ -40,6 +40,7 @@ func (s *swirl) Generative(c *canva) {
}
s.removeNoisy(c)
s.removeNoisy(c)
}
func (s *swirl) swirlTransform(p point) point {