Log in

View Full Version : Getting color data on mouse click



Mephisto
July 22nd, 2025, 10:00
Does anybody know if there is a way to get the color value of the pixel clicked on if you left-click the mouse in a generic control? That would be very helpful to do actions if a certain area of an icon/picture is clicked. I'm not talking map images. :)

superteddy57
July 22nd, 2025, 10:57
That is not possible within FG, but you can use GIMP or Photoshop color picker to get the values.

Mephisto
July 22nd, 2025, 11:40
I can get the values fine in these tools. :) What I want to do is to get the color value on a mouse click and do lua stuff based on the color value collected