package patternassets
Import Path
github.com/pancsta/d2/d2renderers/internal/patternassets (on go.dev)
Dependency Relation
imports 4 packages, and imported by 3 packages
Involved Source Files
Package patternassets owns the canonical built-in texture definitions shared
by D2's SVG and scene renderers.
Package-Level Functions (total 5)
GrainPNG returns the canonical grain texture. Callers must treat the returned
bytes as immutable.
GrainSVG returns the SVG wrapper used by the SVG renderer.
PaperSVG returns the canonical paper pattern definition.
StreakPathData returns the canonical sketch streak path data.
StreaksSVG returns the SVG wrapper used by the SVG renderer.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |