2016-02-19 04:11:53 +01:00
|
|
|
package main
|
|
|
|
|
2016-02-19 15:43:37 +01:00
|
|
|
import "github.com/fogleman/gg"
|
2016-02-19 04:11:53 +01:00
|
|
|
|
|
|
|
func main() {
|
2016-02-19 15:43:37 +01:00
|
|
|
dc := gg.NewContext(1000, 1000)
|
2016-02-19 04:11:53 +01:00
|
|
|
dc.DrawCircle(500, 500, 400)
|
2016-02-19 19:53:33 +01:00
|
|
|
dc.SetRGB(0, 0, 0)
|
|
|
|
dc.SetLineWidth(10)
|
2016-02-19 04:11:53 +01:00
|
|
|
dc.Stroke()
|
2016-02-19 19:54:55 +01:00
|
|
|
dc.SavePNG("out.png")
|
2016-02-19 04:11:53 +01:00
|
|
|
}
|