MCPcopy Index your code
hub / github.com/tdewolff/canvas / Copy

Method Copy

path.go:269–273  ·  view source on GitHub ↗

Copy returns a copy of p.

()

Source from the content-addressed store, hash-verified

267
268// Copy returns a copy of p.
269func (p *Path) Copy() *Path {
270 q := &Path{d: make([]float64, len(p.d))}
271 copy(q.d, p.d)
272 return q
273}
274
275// CopyTo returns a copy of p, using the memory of path q.
276func (p *Path) CopyTo(q *Path) *Path {

Callers 14

replaceMethod · 0.95
TileMethod · 0.95
MarkersMethod · 0.45
RenderPathMethod · 0.45
NewShapeHatchFunction · 0.45
mainFunction · 0.45
RenderPathMethod · 0.45
RenderPathMethod · 0.45
RenderPathMethod · 0.45
RenderPathMethod · 0.45
RenderPathMethod · 0.45
RenderPathMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected