19 lines
359 B
Go
19 lines
359 B
Go
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(1200, 500)
|
|
c.SetBackground(common.White)
|
|
c.FillBackground()
|
|
c.Draw(arts.NewCircleMove(1000))
|
|
c.ToPNG("circlemove.png")
|
|
}
|