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

Function copyLines

primitive/core.go:36–42  ·  view source on GitHub ↗
(dst, src *image.RGBA, lines []Scanline)

Source from the content-addressed store, hash-verified

34}
35
36func copyLines(dst, src *image.RGBA, lines []Scanline) {
37 for _, line := range lines {
38 a := dst.PixOffset(line.X1, line.Y)
39 b := a + (line.X2-line.X1+1)*4
40 copy(dst.Pix[a:b], src.Pix[a:b])
41 }
42}
43
44func drawLines(im *image.RGBA, c Color, lines []Scanline) {
45 const m = 0xffff

Callers 1

EnergyMethod · 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…