pie charts!

This commit is contained in:
Will Charczuk 2016-07-28 02:34:44 -07:00
parent ec4d92fc5e
commit c17c9a4bb4
10 changed files with 485 additions and 45 deletions

View file

@ -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()