Versions in this module Expand all Collapse all v0 v0.1.1 Oct 10, 2026 v0.1.0 Oct 10, 2026 Changes in this version + var Identity = Affine + type Affine struct + A float64 + B float64 + C float64 + D float64 + E float64 + F float64 + func Rotate(deg float64) Affine + func Scale(sx, sy float64) Affine + func Translate(dx, dy float64) Affine + func (m Affine) Apply(p Pt) Pt + func (m Affine) Then(n Affine) Affine + type Cap uint8 + const CapButt + const CapProjecting + const CapRound + type Image struct + H float64 + Pix *image.RGBA + W float64 + X float64 + Y float64 + type Join uint8 + const JoinBevel + const JoinMiter + const JoinRound + type Op uint8 + const Close + const CubicTo + const LineTo + const MoveTo + const QuadTo + type Path struct + Segs []Seg + func (p *Path) Append(q *Path, m Affine) + func (p *Path) Bounds() (x0, y0, x1, y1 float64, ok bool) + func (p *Path) Circle(cx, cy, r float64) + func (p *Path) Close() + func (p *Path) CubicTo(c1x, c1y, c2x, c2y, x, y float64) + func (p *Path) LineTo(x, y float64) + func (p *Path) MoveTo(x, y float64) + func (p *Path) QuadTo(cx, cy, x, y float64) + func (p *Path) Rect(x, y, w, h float64) + type Pt struct + X float64 + Y float64 + type Raster struct + Img *image.RGBA + func NewRaster(w, h int) *Raster + func (r *Raster) BeginGroup(string) + func (r *Raster) DrawImage(im Image) + func (r *Raster) DrawPath(p *Path, s Style) + func (r *Raster) EndGroup() + func (r *Raster) PopClip() + func (r *Raster) PushClip(x, y, w, h float64) + func (r *Raster) Size() (int, int) + type Renderer interface + BeginGroup func(id string) + DrawImage func(im Image) + DrawPath func(p *Path, s Style) + EndGroup func() + PopClip func() + PushClip func(x, y, w, h float64) + Size func() (w, h int) + type SVG struct + func NewSVG(w, h int, dpi float64) *SVG + func (s *SVG) BeginGroup(id string) + func (s *SVG) DrawImage(im Image) + func (s *SVG) DrawPath(p *Path, st Style) + func (s *SVG) EndGroup() + func (s *SVG) PopClip() + func (s *SVG) PushClip(x, y, w, h float64) + func (s *SVG) Size() (int, int) + func (s *SVG) WriteTo(w io.Writer) (int64, error) + type Seg struct + Op Op + P [3]Pt + type Style struct + Cap Cap + Dash []float64 + EvenOdd bool + Fill colors.RGBA + Join Join + Offset float64 + Snap bool + Stroke colors.RGBA + Width float64