simplify example
This commit is contained in:
parent
d1da415ba6
commit
920f472de0
@ -4,13 +4,9 @@ import "github.com/fogleman/gg"
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
dc := gg.NewContext(1000, 1000)
|
dc := gg.NewContext(1000, 1000)
|
||||||
dc.SetRGB(1, 1, 1)
|
|
||||||
dc.Clear()
|
|
||||||
dc.DrawCircle(500, 500, 400)
|
dc.DrawCircle(500, 500, 400)
|
||||||
dc.SetRGBA(0, 0, 0, 0.25)
|
dc.SetRGB(0, 0, 0)
|
||||||
dc.FillPreserve()
|
dc.SetLineWidth(10)
|
||||||
dc.SetRGB(0, 0, 0.5)
|
|
||||||
dc.SetLineWidth(8)
|
|
||||||
dc.Stroke()
|
dc.Stroke()
|
||||||
dc.WritePNG("out.png")
|
dc.WritePNG("out.png")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user