Function
strokePath
(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 | |
| 37 | func 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 | } |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…