Convert color to hex。
url
string
图像资源
package main import ( "fmt" "github.com/fishtailstudio/imgo" "image/color" ) func main() { fmt.Println(imgo.Color2Hex(color.White)) }
Output:
#FFFFFF
Last updated 2 years ago