Map regions as a button

You can get the colour of the point you click on by including the following code in an object’s mouseClicked event:import java.awt.Robot robot = java.awt.Robot() x = event.x + event.source.getLocationOnScreen().x y = event.y + event.source.getLocationOnScreen().y colour = robot.getPixelColor(x, y)Can I get my ‘Clever Scripter’ badge now please? :slight_smile: