Versions in this module Expand all Collapse all v0 v0.1.3 Sep 24, 2026 Changes in this version + func MatrixScale(m geom.Matrix) float64 + type Core struct + func New(width, height float64, resolution geom.Resolution, ...) (*Core, error) + func (c *Core) ClearFill() + func (c *Core) ClearStroke() + func (c *Core) CopyStrokeToFill() + func (c *Core) CurrentMatrix() geom.Matrix + func (c *Core) DrawImage(img image.Image, x, y float64, dpmm float64) + func (c *Core) DrawPath(x, y float64, p *geom.Path) + func (c *Core) Pop() + func (c *Core) Push() + func (c *Core) Raster() *image.RGBA + func (c *Core) RenderImage(img image.Image, m geom.Matrix) + func (c *Core) Rotate(deg float64) + func (c *Core) Scale(sx, sy float64) + func (c *Core) SetDashes(offset float64, dashes ...float64) + func (c *Core) SetFillColor(col color.Color) + func (c *Core) SetFillGradient(g geom.Gradient) + func (c *Core) SetFillPaint(paint geom.Paint) + func (c *Core) SetFillRule(rule geom.FillRule) + func (c *Core) SetStrokeCapper(cap geom.Capper) + func (c *Core) SetStrokeColor(col color.Color) + func (c *Core) SetStrokeGradient(g geom.Gradient) + func (c *Core) SetStrokeJoiner(join geom.Joiner) + func (c *Core) SetStrokePaint(paint geom.Paint) + func (c *Core) SetStrokeWidth(w float64) + func (c *Core) StrokeCapper() geom.Capper + func (c *Core) StrokeJoiner() geom.Joiner + func (c *Core) StrokeWidth() float64 + func (c *Core) TextPath(p *geom.Path, x, y float64) + func (c *Core) Translate(x, y float64) + type DeviceOp byte + const CloseOp + const CubeOp + const LineOp + const MoveOp + const QuadOp + type DevicePath struct + Segs []DeviceSeg + func (p *DevicePath) Close() + func (p *DevicePath) CubeTo(c1x, c1y, c2x, c2y, x, y float64) + func (p *DevicePath) LineTo(x, y float64) + func (p *DevicePath) MoveTo(x, y float64) + func (p *DevicePath) QuadTo(cx, cy, x, y float64) + func (p *DevicePath) Reset() + type DeviceSeg struct + Op DeviceOp + P [3]geom.Point + type Hooks interface + ClearFill func() + ClearStroke func() + DrawDevicePath func(path *DevicePath, m geom.Matrix, fill, stroke bool, ...) + Pop func() + Push func() + Raster func() *image.RGBA + RenderImage func(img image.Image, m geom.Matrix) + SetFillRule func(rule geom.FillRule) + SetFillSolid func(c color.Color) + SetStrokeSolid func(c color.Color) + type StrokeStyle struct + Cap geom.Capper + DashOffset float64 + Dashes []float64 + Join geom.Joiner + MiterLimit float64 + Width float64