Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #311 // Rotate 180°

Lua code - Visualizer

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(w-1-x, h-1-y)
6  
  end
7  
end

Author comment

Began life as a copy of #310

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

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 139 [visualize]

Snippet ID: #311
Snippet name: Rotate 180°
Eternal ID of this version: #311/1
Text MD5: f7a7ce0e13428c071d9314bf1c3d4ead
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:24:08
Source code size: 141 bytes / 7 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 787 / 185
Referenced in: [show references]