package main import ( "github.com/jdxyw/generativeart" "github.com/jdxyw/generativeart/arts" "github.com/jdxyw/generativeart/common" "math/rand" "time" ) func main() { rand.Seed(time.Now().Unix()) c := generativeart.NewCanva(500, 500) c.SetBackground(common.MistyRose) c.SetLineWidth(10) c.SetLineColor(common.Orange) c.SetColorSchema(common.Plasma) c.SetForeground(common.Tomato) c.FillBackground() c.Draw(arts.NewSpiralSquare(40, 400, 0.05, true)) c.ToPNG("spiralsquare.png") }