示例#1
0
func DrawEllipses(s *ebiten.Image, rects ebiten.Rects) error {
	return s.DrawLines(&ellipsesLines{rects, 0, 2 * math.Pi})
}
示例#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})
}
示例#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})
}