MCPcopy
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.
140func (paint Paint) IsPattern() bool {
141 return paint.Pattern != nil
142}
143
144// Dash patterns
145var (

Callers 9

EqualMethod · 0.95
NewHatchPatternFunction · 0.95
SetFillMethod · 0.80
SetStrokeMethod · 0.80
toStyleMethod · 0.80
RenderPathMethod · 0.80
writePaintMethod · 0.80

Calls

no outgoing calls

Tested by 2