MCPcopy Create free account
hub / github.com/google/gapid / setColorFrom

Method setColorFrom

core/image/s3.go:67–69  ·  view source on GitHub ↗
(c pixel)

Source from the content-addressed store, hash-verified

65}
66
67func (p *pixel) setColorFrom(c pixel) {
68 p.r, p.g, p.b = c.r, c.g, c.b
69}
70
71func (p *pixel) setToAverage(c0, c1 pixel) {
72 p.r = (c0.r + c1.r) / 2

Callers 2

decodeDXT1Function · 0.80
decodeColorDXT3_5Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected