static L<Rect> floodFillGrid(BitSet grid, int gw, int gh, int g) { new L<Rect> clips; for (int y = 0; y < gh; y++) for (int x = 0; x < gw; x++) if (grid.get(y*gw+x)) { Rect r = floodFillGrid_step(grid, gw, gh, x, y); r = scaleRect(r, g); clips.add(r); } ret clips; }
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: | #1006204 |
Snippet name: | floodFillGrid |
Eternal ID of this version: | #1006204/1 |
Text MD5: | 326d9119fc93d258b2237ce2bd1afd94 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-23 14:09:27 |
Source code size: | 334 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 561 / 547 |
Referenced in: | #1006206 - floodFillGrid_step #1006654 - Standard functions list 2 (LIVE, continuation of #761) |