Requirements:
- Must have support across all browsers
- Allows the user to select a pixel from within a window and alertthe result in hexadecimal form.
- Must be a bookmarklet
This is what I have so far.
javascript:window.EyeDropper&&(new EyeDropper()).open().then(result => alert(result.sRGBHex));
The EyeDropper API is only supported on Chromium-based browsers so far. As such, I am looking for a polyfill meeting all these requirements.
