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

Method AddPath

text.go:590–594  ·  view source on GitHub ↗
(path *Path, col color.RGBA, valign VerticalAlign)

Source from the content-addressed store, hash-verified

588}
589
590func (rt *RichText) AddPath(path *Path, col color.RGBA, valign VerticalAlign) *RichText {
591 fmt.Println("WARNING: deprecated RichText.AddPath, use RichText.WritePath") // TODO: remove
592 rt.WritePath(path, col, valign)
593 return rt
594}
595
596func (rt *RichText) AddImage(img image.Image, res Resolution, valign VerticalAlign) *RichText {
597 fmt.Println("WARNING: deprecated RichText.AddImage, use RichText.WriteImage") // TODO: remove

Callers

nothing calls this directly

Calls 1

WritePathMethod · 0.95

Tested by

no test coverage detected