mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update examples
This commit is contained in:
parent
ea0b910646
commit
100783ccf4
@ -32,6 +32,8 @@ func main() {
|
||||
|
||||
color := robotgo.GetColor(bitmap, 1, 2)
|
||||
fmt.Println("color...", color)
|
||||
cx, cy := robotgo.FindColor(bitmap, color, 1.0)
|
||||
fmt.Println("pos...", cx, cy)
|
||||
|
||||
// searches for needle in bitmap
|
||||
fx, fy := robotgo.FindBit(bitmap)
|
||||
|
@ -142,6 +142,8 @@ func bitmap() {
|
||||
|
||||
color := robotgo.GetColor(bitmap, 1, 2)
|
||||
fmt.Println("color...", color)
|
||||
cx, cy := robotgo.FindColor(bitmap, color, 1.0)
|
||||
fmt.Println("pos...", cx, cy)
|
||||
|
||||
// searches for needle in bitmap
|
||||
fx, fy := robotgo.FindBit(bitmap)
|
||||
|
Loading…
Reference in New Issue
Block a user