1 | w, h = img.width, img.height |
2 | pixels = {}
|
3 | for y = 0, h-1 do |
4 | for x = 0, w-1 do |
5 | pixels[y*w+x+1] = img.getInt(x, y) |
6 | end |
7 | end |
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 131 | [visualize] |
| Snippet ID: | #310 |
| Snippet name: | ID Visualizer |
| Eternal ID of this version: | #310/1 |
| Text MD5: | 4f5a8c5d7bfd92918f676a481bb46f4d |
| Author: | stefan |
| Category: | ir result visualizers |
| Type: | Lua code - Visualizer |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-02-03 21:26:42 |
| Source code size: | 133 bytes / 7 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 968 / 211 |
| Referenced in: | [show references] |