Exemple #1
0
func DrawLine(gc *draw2d.ImageGraphicContext, x1, y1, x2, y2 float64) {
	gc.MoveTo(x1, y1)
	gc.LineTo(x2, y2)
	gc.FillStroke()
}
Exemple #2
0
func DrawCircle(gc *draw2d.ImageGraphicContext, x, y float64) {
	gc.ArcTo(x, y, 3, 3, 0, 2*math.Pi)
	gc.SetFillColor(color.RGBA{255, 0, 0, 255})
	gc.FillStroke()
}