Function
fillPath
(worker *Worker, path raster.Path)
Source from the content-addressed store, hash-verified
| 24 | } |
| 25 | |
| 26 | func 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 | |
| 37 | func strokePath(worker *Worker, path raster.Path, width fixed.Int26_6, cr raster.Capper, jr raster.Joiner) []Scanline { |
| 38 | r := worker.Rasterizer |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…