Initial commit

This commit is contained in:
2024-06-23 08:45:58 -04:00
commit 698e838b97
5 changed files with 122 additions and 0 deletions

9
image/color/color.go Normal file
View 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
}