RenderTo tiles the hatch pattern to the clipping path and renders it to the renderer.
(r Renderer, clip *Path)
| 128 | |
| 129 | // RenderTo tiles the hatch pattern to the clipping path and renders it to the renderer. |
| 130 | func (p *HatchPattern) RenderTo(r Renderer, clip *Path) { |
| 131 | hatch := p.Tile(clip) |
| 132 | r.RenderPath(hatch, Style{Fill: p.Fill}, Identity) |
| 133 | } |
| 134 | |
| 135 | // NewLineHatch returns a new line hatch pattern with lines at an angle with a spacing of distance. Thickness is the stroke thickness applied to the shape; stroking is ignored with thickness is zero. |
| 136 | func NewLineHatch(ifill any, angle, distance, thickness float64) *HatchPattern { |
nothing calls this directly
no test coverage detected