Versions in this module Expand all Collapse all v1 v1.0.0 Jan 8, 2021 Changes in this version + func Stroke(p Adder, q Path, width fixed.Int26_6, cr Capper, jr Joiner) + type Adder interface + Add1 func(b fixed.Point26_6) + Add2 func(b, c fixed.Point26_6) + Add3 func(b, c, d fixed.Point26_6) + Start func(a fixed.Point26_6) + type AlphaOverPainter struct + Image *image.Alpha + func NewAlphaOverPainter(m *image.Alpha) AlphaOverPainter + func (r AlphaOverPainter) Paint(ss []Span, done bool) + type AlphaSrcPainter struct + Image *image.Alpha + func NewAlphaSrcPainter(m *image.Alpha) AlphaSrcPainter + func (r AlphaSrcPainter) Paint(ss []Span, done bool) + type Capper interface + Cap func(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) + var ButtCapper Capper = CapperFunc(buttCapper) + var RoundCapper Capper = CapperFunc(roundCapper) + var SquareCapper Capper = CapperFunc(squareCapper) + type CapperFunc func(Adder, fixed.Int26_6, fixed.Point26_6, fixed.Point26_6) + func (f CapperFunc) Cap(p Adder, halfWidth fixed.Int26_6, pivot, n1 fixed.Point26_6) + type GammaCorrectionPainter struct + Painter Painter + func NewGammaCorrectionPainter(p Painter, gamma float64) *GammaCorrectionPainter + func (g *GammaCorrectionPainter) Paint(ss []Span, done bool) + func (g *GammaCorrectionPainter) SetGamma(gamma float64) + type Joiner interface + Join func(lhs, rhs Adder, halfWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) + var BevelJoiner Joiner = JoinerFunc(bevelJoiner) + var RoundJoiner Joiner = JoinerFunc(roundJoiner) + type JoinerFunc func(lhs, rhs Adder, halfWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) + func (f JoinerFunc) Join(lhs, rhs Adder, halfWidth fixed.Int26_6, pivot, n0, n1 fixed.Point26_6) + type MonochromePainter struct + Painter Painter + func NewMonochromePainter(p Painter) *MonochromePainter + func (m *MonochromePainter) Paint(ss []Span, done bool) + type Painter interface + Paint func(ss []Span, done bool) + type PainterFunc func(ss []Span, done bool) + func (f PainterFunc) Paint(ss []Span, done bool) + type Path []fixed.Int26_6 + func (p *Path) Add1(b fixed.Point26_6) + func (p *Path) Add2(b, c fixed.Point26_6) + func (p *Path) Add3(b, c, d fixed.Point26_6) + func (p *Path) AddPath(q Path) + func (p *Path) AddStroke(q Path, width fixed.Int26_6, cr Capper, jr Joiner) + func (p *Path) Clear() + func (p *Path) Start(a fixed.Point26_6) + func (p Path) String() string + type RGBAPainter struct + Image *image.RGBA + Op draw.Op + func NewRGBAPainter(m *image.RGBA) *RGBAPainter + func (r *RGBAPainter) Paint(ss []Span, done bool) + func (r *RGBAPainter) SetColor(c color.Color) + type Rasterizer struct + Dx int + Dy int + UseNonZeroWinding bool + func NewRasterizer(width, height int) *Rasterizer + func (r *Rasterizer) Add1(b fixed.Point26_6) + func (r *Rasterizer) Add2(b, c fixed.Point26_6) + func (r *Rasterizer) Add3(b, c, d fixed.Point26_6) + func (r *Rasterizer) AddPath(p Path) + func (r *Rasterizer) AddStroke(q Path, width fixed.Int26_6, cr Capper, jr Joiner) + func (r *Rasterizer) Clear() + func (r *Rasterizer) Rasterize(p Painter) + func (r *Rasterizer) SetBounds(width, height int) + func (r *Rasterizer) Start(a fixed.Point26_6) + type Span struct + Alpha uint32 + X0 int + X1 int + Y int