Versions in this module Expand all Collapse all v0 v0.5.0 Dec 28, 2020 Changes in this version + type Context struct + func NewContextForRGBA(im *image.RGBA) *Context + func (dc *Context) ArcTo(x1, y1, x2, y2, radius float64) + func (dc *Context) BeginPath() + func (dc *Context) Clear() + func (dc *Context) ClearPath() + func (dc *Context) Clip() + func (dc *Context) ClipPreserve() + func (dc *Context) ClosePath() + func (dc *Context) CurrentPoint() (float64, float64, bool) + func (dc *Context) DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64) + func (dc *Context) DrawImageAnchored(im image.Image, x, y int, ax, ay float64) + func (dc *Context) DrawLine(x1, y1, x2, y2 float64) + func (dc *Context) DrawPoint(x, y float64) + func (dc *Context) DrawStringAnchored(s string, x, y, ax, ay float64) + func (dc *Context) Fill() + func (dc *Context) FillAndStroke() + func (dc *Context) FillPreserve() + func (dc *Context) FontSize() float64 + func (dc *Context) Height() float64 + func (dc *Context) Identity() + func (dc *Context) Image() image.Image + func (dc *Context) LineTo(x, y float64) + func (dc *Context) MeasureString(s string) (w, h float64) + func (dc *Context) MoveTo(x, y float64) + func (dc *Context) Pop() + func (dc *Context) Push() + func (dc *Context) QuadraticTo(x1, y1, x2, y2 float64) + func (dc *Context) ResetClip() + func (dc *Context) Rotate(angle float64) + func (dc *Context) Scale(x, y float64) + func (dc *Context) SetFillColor(r, g, b, a int) + func (dc *Context) SetFillRule(fillRule gg.FillRule) + func (dc *Context) SetFillStyle(pattern gg.Pattern) + func (dc *Context) SetFont(font *truetype.Font) + func (dc *Context) SetFontSize(points float64) + func (dc *Context) SetLineCap(lineCap gg.LineCap) + func (dc *Context) SetLineDash(dashes ...float64) + func (dc *Context) SetLineDashOffset(offset float64) + func (dc *Context) SetLineJoin(lineJoin gg.LineJoin) + func (dc *Context) SetPixelColor(c color.Color, x, y int) + func (dc *Context) SetStrokeColor(r, g, b, a int) + func (dc *Context) SetStrokeStyle(pattern gg.Pattern) + func (dc *Context) SetStrokeWeight(lineWidth float64) + func (dc *Context) Stroke() + func (dc *Context) StrokeWeight() float64 + func (dc *Context) TransformPoint(x, y float64) (tx, ty float64) + func (dc *Context) Translate(x, y float64) + func (dc *Context) Width() float64 + type Point struct + X float64 + Y float64 + func CubicBezier(x0, y0, x1, y1, x2, y2, x3, y3 float64) []Point + func QuadraticBezier(x0, y0, x1, y1, x2, y2 float64) []Point + func (a Point) Distance(b Point) float64 + func (a Point) Fixed() fixed.Point26_6 + func (a Point) Interpolate(b Point, t float64) Point