From b75d62da6289a88382e1908b0f0df07d6df32857 Mon Sep 17 00:00:00 2001 From: Yongwei Xing Date: Fri, 19 Mar 2021 14:37:12 +0800 Subject: [PATCH] add one more reference --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d8ae8fe..ae511d4 100644 --- a/README.md +++ b/README.md @@ -452,14 +452,14 @@ func main() { ```go func main() { - rand.Seed(time.Now().Unix()) - c := generativeart.NewCanva(500, 500) - c.SetBackground(color.RGBA{R: 30, G: 30, B: 30, A: 255}) - c.FillBackground() - c.SetLineWidth(1.0) - c.SetLineColor(common.Tomato) - c.Draw(arts.NewBlackHole(200, 400, 0.01)) - c.ToPNG("blackhole.png") + rand.Seed(time.Now().Unix()) + c := generativeart.NewCanva(500, 500) + c.SetBackground(color.RGBA{R: 30, G: 30, B: 30, A: 255}) + c.FillBackground() + c.SetLineWidth(1.0) + c.SetLineColor(common.Tomato) + c.Draw(arts.NewBlackHole(200, 400, 0.01)) + c.ToPNG("blackhole.png") } ``` @@ -543,3 +543,4 @@ Thanks for the following sites and repos, I got lots of ideas, inspiration, code - - - +-