Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tdewolff/canvas
/ IsPattern
Method
IsPattern
canvas.go:140–142 ·
view source on GitHub ↗
IsPattern returns true when paint is a pattern.
()
Source
from the content-addressed store, hash-verified
138
139
// IsPattern returns true when paint is a pattern.
140
func
(paint Paint) IsPattern() bool {
141
return
paint.Pattern != nil
142
}
143
144
// Dash patterns
145
var
(
Callers
9
Equal
Method · 0.95
NewHatchPattern
Function · 0.95
TestParseSVGPatternLineHatch
Function · 0.80
TestParseSVGPatternCurrentColor
Function · 0.80
SetFill
Method · 0.80
SetStroke
Method · 0.80
toStyle
Method · 0.80
RenderPath
Method · 0.80
writePaint
Method · 0.80
Calls
no outgoing calls
Tested by
2
TestParseSVGPatternLineHatch
Function · 0.64
TestParseSVGPatternCurrentColor
Function · 0.64