package ucolor import "image/color" // Transparent returns whether or not a color has transparency. func Transparent (c color.Color) bool { _, _, _, a := c.RGBA() return a != 0xFFFF }