diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c499406 Binary files /dev/null and b/.DS_Store differ diff --git a/example/example_swirl.go b/example/example_swirl.go index 9429396..02cbc69 100644 --- a/example/example_swirl.go +++ b/example/example_swirl.go @@ -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") } diff --git a/images/swirl.png b/images/swirl.png index 337f71d..4138a23 100644 Binary files a/images/swirl.png and b/images/swirl.png differ diff --git a/swirl.go b/swirl.go index 577ae38..3b27f84 100644 --- a/swirl.go +++ b/swirl.go @@ -40,6 +40,7 @@ func (s *swirl) Generative(c *canva) { } s.removeNoisy(c) + s.removeNoisy(c) } func (s *swirl) swirlTransform(p point) point {