MCPcopy
hub / github.com/fogleman/primitive / copyRGBA

Function copyRGBA

primitive/util.go:176–180  ·  view source on GitHub ↗
(src *image.RGBA)

Source from the content-addressed store, hash-verified

174}
175
176func copyRGBA(src *image.RGBA) *image.RGBA {
177 dst := image.NewRGBA(src.Bounds())
178 copy(dst.Pix, src.Pix)
179 return dst
180}
181
182func uniformRGBA(r image.Rectangle, c color.Color) *image.RGBA {
183 im := image.NewRGBA(r)

Callers 1

AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…