static BWImage bwImage_markColumnsWhite(int w, int h, L<? extends Number> columns) { BWImage img = new(w, h, 0f); for (Number i : columns) { int col = iround(i); if (col >= 0 && col < w) for y to h: img.setPixel(col, y, 1f); } ret img; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018689 |
Snippet name: | bwImage_markColumnsWhite |
Eternal ID of this version: | #1018689/2 |
Text MD5: | b42532c67f6a9bc7acf8031ed37580f7 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-10 16:12:22 |
Source code size: | 267 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 327 / 369 |
Version history: | 1 change(s) |
Referenced in: | [show references] |