E
E
Eugene Dyakonov2016-11-22 10:28:29
linux
Eugene Dyakonov, 2016-11-22 10:28:29

How to get point color from coordinates in linux?

Hello. You need to get the color of a point on the screen from the console, knowing the coordinates of this point.
Tried via "grabc" and "import -window root -depth 8 -crop 1x1+$X+$Y txt:-" .
Are there any other ways? I am writing a clicker for a simple toy, I need to check the color at certain points, thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kovalsky, 2016-11-22
@lazalu68

This can probably be seen in the implementations of gcolor and gpick

D
dponyatov, 2016-12-01
@dponyatov

View the implementation of import - this is what Linux is good for, that you can copy-paste and modify a ready-made solution for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question