Libraryless. Click here for Pure Java version (5001L/35K/125K).
!7 static int size = 33; p { repeat with ms sleep 100 { RGBImage orig = rgbShootScreen(rectAround(mousePointer(), size, size)); RGBImage img = new RGBImage(size, size, Color.gray); int radius = size/2-2; L<Pt> points = circlePoints(size/2, size/2, radius); int n = l(points); float[] values = new float[n]; for i to n: values[i] = orig.getPixel(points.get(i)).getBrightness(); values = cyclicBlur(values); L<Int> minima = cyclicLocalMinima(values); for (int i : minima) rgbMarkPoint(img, points.get(i)); for (Pt p : points) img.setPixel(p, orig.getPixel(p)); alwaysOnTop(quickShowZoomedImage(img)); } }
Began life as a copy of #1006782
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006786 |
Snippet name: | Perimeter |
Eternal ID of this version: | #1006786/11 |
Text MD5: | 2ad42b92dfe43c1d032ea8d50e32ccbe |
Transpilation MD5: | be001d62507ee8d7a008d10827658198 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-04 05:45:21 |
Source code size: | 696 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 526 / 839 |
Version history: | 10 change(s) |
Referenced in: | #1006792 - Feel The Circle [Mouse Mover] |