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

Function fillPath

primitive/raster.go:26–35  ·  view source on GitHub ↗
(worker *Worker, path raster.Path)

Source from the content-addressed store, hash-verified

24}
25
26func fillPath(worker *Worker, path raster.Path) []Scanline {
27 r := worker.Rasterizer
28 r.Clear()
29 r.UseNonZeroWinding = true
30 r.AddPath(path)
31 var p painter
32 p.Lines = worker.Lines[:0]
33 r.Rasterize(&p)
34 return p.Lines
35}
36
37func strokePath(worker *Worker, path raster.Path, width fixed.Int26_6, cr raster.Capper, jr raster.Joiner) []Scanline {
38 r := worker.Rasterizer

Callers 2

RasterizeMethod · 0.85
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…