add IM.FillCircleArc
This commit is contained in:
parent
63128da6ce
commit
bca582815c
11
graphics.go
11
graphics.go
|
@ -223,7 +223,12 @@ func (im *IM) FillConvexPolygon() {
|
||||||
|
|
||||||
// FillCircle draws a filled circle around each point in the IM's queue.
|
// FillCircle draws a filled circle around each point in the IM's queue.
|
||||||
func (im *IM) FillCircle(radius float64) {
|
func (im *IM) FillCircle(radius float64) {
|
||||||
im.FillEllipse(V(radius, radius))
|
im.FillEllipseArc(V(radius, radius), 0, 2*math.Pi)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FillCircleArc draws a filled circle arc around each point in the IM's queue.
|
||||||
|
func (im *IM) FillCircleArc(radius, low, high float64) {
|
||||||
|
im.FillEllipseArc(V(radius, radius), low, high)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FillEllipse draws a filled ellipse around each point in the IM's queue.
|
// FillEllipse draws a filled ellipse around each point in the IM's queue.
|
||||||
|
@ -260,3 +265,7 @@ func (im *IM) FillEllipseArc(radius Vec, low, high float64) {
|
||||||
im.FillConvexPolygon()
|
im.FillConvexPolygon()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (im *IM) Line() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue