MCPcopy
hub / github.com/tdewolff/canvas / Hatcher

FuncType Hatcher

patterns.go:55–55  ·  view source on GitHub ↗

Hatcher is a hatch pattern along the cell's axes. The rectangle (x0,y0)-(x1,y1) is expressed in the unit cell's coordinate system, and the returned path should be transformed by the cell to obtain the final hatch pattern.

func(float64, float64, float64, float64) *Path

Source from the content-addressed store, hash-verified

53
54// Hatcher is a hatch pattern along the cell's axes. The rectangle (x0,y0)-(x1,y1) is expressed in the unit cell's coordinate system, and the returned path should be transformed by the cell to obtain the final hatch pattern.
55type Hatcher func(float64, float64, float64, float64) *Path
56
57// NewHatchPattern returns a new hatch pattern.
58func NewHatchPattern(ifill any, thickness float64, cell Matrix, hatch Hatcher) *HatchPattern {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected