package main
import "github.com/fogleman/gg"
func main() {
dc := gg.NewContext(1000, 1000)
//dc.Push()
dc.DrawCircle(500, 500, 400)
dc.SetRGB255(0, 0, 0)
dc.Fill()
dc.SetHexColor("#008080")
dc.DrawRectangle(10,10,40,30)
dc.SetRGB255(255, 0, 0)
dc.Fill()
dc.SavePNG("out.png")
}
Nessun commento:
Posta un commento