mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Update examples
This commit is contained in:
parent
ea0b910646
commit
100783ccf4
2 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue