This feature was developed in B4J for an application that needed to capture the color of a pixel and display it in RGB by default. Clicking on it displays the colors in hexadecimal and other formats.
It's similar to a PowerToys feature.
Using Java functions
java.awt.Robot