Libraryless. Click here for Pure Java version (6850L/50K/176K).
!7 p { trackOneClick(voidfunc(final Point p) { awtLater(500, r { RGBImage img = shootScreen(new Rect(p.x, p.y, 1, 1)); RGB rgb = img.getPixel(0, 0); print("Color at " + p.x + "/" + p.y + ": #" + rgb + " " + rgbToIntTriple(rgb)); showControls(jCenteredLine(jbutton("Do it again", r { callMain(mc()) }))); }); }); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006202 |
Snippet name: | Color Picker [pick up color from screen on mouse click] |
Eternal ID of this version: | #1006202/5 |
Text MD5: | 1fc5648e9cc0c41df99633edc5abe56a |
Transpilation MD5: | 0e6e16d101860835999007a2edda710e |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-18 13:37:54 |
Source code size: | 361 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 508 / 652 |
Version history: | 4 change(s) |
Referenced in: | -