【文件属性】:
文件名称:go-x256:查找最近的xterm 256颜色代码
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-03 21:06:34
Go
go-x256
为您提供的rgb输入查找最接近的。 转到端口。
快速开始
获取与您的图像颜色最接近的ansi颜色代码:
import "github.com/ivolo/go-x256"
// get the cloest ansi code to RGB point {220,40,150}
code := x256 . ClosestCode ( 220 , 40 , 150 )
// 162
您可以打印一个彩色的字符串:
import "github.com/ivolo/go-x256"
import "github.com/mgutz/ansi"
/// get the ansi color code
code := x256 . ClosestCode ( 220 , 40 , 150 )
// write the colored string
buffer . Writ
【文件预览】:
go-x256-master
----Readme.md(926B)
----x256.go(4KB)
----Makefile(65B)
----x256_test.go(218B)