mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 23:53:54 +00:00
add ToMMRGBHex convert color hex
This commit is contained in:
parent
eb425d7652
commit
bb7518a04a
@ -62,7 +62,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version string = "v0.47.0.458, Mount Cook!"
|
version string = "v0.47.0.460, Mount Cook!"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
@ -123,6 +123,11 @@ func GetPxColor(x, y int) C.MMRGBHex {
|
|||||||
return color
|
return color
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ToMMRGBHex trans CHex to C.MMRGBhex
|
||||||
|
func ToMMRGBHex(hex CHex) C.MMRGBHex {
|
||||||
|
return C.MMRGBHex(hex)
|
||||||
|
}
|
||||||
|
|
||||||
// GetPixelColor get pixel color return string
|
// GetPixelColor get pixel color return string
|
||||||
func GetPixelColor(x, y int) string {
|
func GetPixelColor(x, y int) string {
|
||||||
cx := C.size_t(x)
|
cx := C.size_t(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user