Exemplo n.º 1
0
func DrawEllipses(s *ebiten.Image, rects ebiten.Rects) error {
	return s.DrawLines(&ellipsesLines{rects, 0, 2 * math.Pi})
}
Exemplo n.º 2
0
func DrawArc(s *ebiten.Image, x, y, width, height int, angle0, angle1 float64, clr color.Color) error {
	return s.DrawLines(&ellipsesLines{&rect{x, y, width, height, clr}, angle0, angle1})
}
Exemplo n.º 3
0
func DrawEllipse(s *ebiten.Image, x, y, width, height int, clr color.Color) error {
	return s.DrawLines(&ellipsesLines{&rect{x, y, width, height, clr}, 0, 2 * math.Pi})
}