MCPcopy
hub / github.com/fogleman/primitive / strokePath

Function strokePath

primitive/raster.go:37–46  ·  view source on GitHub ↗
(worker *Worker, path raster.Path, width fixed.Int26_6, cr raster.Capper, jr raster.Joiner)

Source from the content-addressed store, hash-verified

35}
36
37func strokePath(worker *Worker, path raster.Path, width fixed.Int26_6, cr raster.Capper, jr raster.Joiner) []Scanline {
38 r := worker.Rasterizer
39 r.Clear()
40 r.UseNonZeroWinding = true
41 r.AddStroke(path, width, cr, jr)
42 var p painter
43 p.Lines = worker.Lines[:0]
44 r.Rasterize(&p)
45 return p.Lines
46}

Callers 1

RasterizeMethod · 0.85

Calls 2

ClearMethod · 0.80
RasterizeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…