(c color.Color)
| 11 | } |
| 12 | |
| 13 | func MakeColor(c color.Color) Color { |
| 14 | r, g, b, a := c.RGBA() |
| 15 | return Color{int(r / 257), int(g / 257), int(b / 257), int(a / 257)} |
| 16 | } |
| 17 | |
| 18 | func MakeHexColor(x string) Color { |
| 19 | x = strings.Trim(x, "#") |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…