10 lines
188 B
Go
10 lines
188 B
Go
|
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
|
||
|
}
|