1 | static BWImage bwImage_markColumnsWhite(int w, int h, L<? extends Number> columns) { |
2 | BWImage img = new(w, h, 0f); |
3 | for (Number i : columns) { |
4 | int col = iround(i); |
5 | if (col >= 0 && col < w) |
6 | for y to h: img.setPixel(col, y, 1f); |
7 | } |
8 | ret img; |
9 | } |
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: | 329 / 371 |
Version history: | 1 change(s) |
Referenced in: | [show references] |