pie charts!
This commit is contained in:
parent
ec4d92fc5e
commit
c17c9a4bb4
10 changed files with 485 additions and 45 deletions
|
|
@ -34,6 +34,14 @@ type Renderer interface {
|
|||
// from the previous point.
|
||||
LineTo(x, y int)
|
||||
|
||||
// QuadCurveTo draws a quad curve.
|
||||
// cx and cy represent the bezier "control points".
|
||||
QuadCurveTo(cx, cy, x, y int)
|
||||
|
||||
// ArcTo draws an arc with a given center (cx,cy)
|
||||
// a given set of radii (rx,ry), a startAngle and delta (in radians).
|
||||
ArcTo(cx, cy int, rx, ry, startAngle, delta float64)
|
||||
|
||||
// Close finalizes a shape as drawn by LineTo.
|
||||
Close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue