- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for withinTolerance (0.1 sec)
-
src/image/decode_test.go
} defer f.Close() return image.DecodeConfig(bufio.NewReader(f)) } func delta(u0, u1 uint32) int { d := int(u0) - int(u1) if d < 0 { return -d } return d } func withinTolerance(c0, c1 color.Color, tolerance int) bool { r0, g0, b0, a0 := c0.RGBA() r1, g1, b1, a1 := c1.RGBA() r := delta(r0, r1) g := delta(g0, g1) b := delta(b0, b1) a := delta(a0, a1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:51:48 UTC 2019 - 3.7K bytes - Viewed (0)