Initial commit
This commit is contained in:
9
image/color/color.go
Normal file
9
image/color/color.go
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user