get('#175') -- tableToString
width=100
height=50
--print("pixels:", pixels)
repaint=not notFirstTime
notFirstTime=true
pixels=nil -- optimization (no redraw effort if image not changed)
if inputEvents then
  for _, e in ipairs(inputEvents) do
    print(tableToString(e))
    if e[1] == 'mousePressed' then
      mouse = true
      repaint = true
    elseif e[1] == 'mouseReleased' then
      mouse = false
      repaint = true
    end
  end
end
if repaint then
  pixels = {}
  if mouse then
    for i=1, width*height do pixels[i] = -1 end
  end
end
animateAgainIn = 100\n\nBegan life as a copy of #106
show applet 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 | 602 | [visualize] | 
| Snippet ID: | #184 | 
| Snippet name: | GUI event dumper | 
| Eternal ID of this version: | #184/1 | 
| Text MD5: | 374e2ce9f1249deaeaf4452fab5b3cbb | 
| Author: | stefan | 
| Category: | gui tests | 
| Type: | Lua code - GUI | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2014-01-16 06:52:16 | 
| Source code size: | 602 bytes / 30 lines | 
| Pitched / IR pitched: | No / Yes | 
| Views / Downloads: | 1047 / 274 | 
| Referenced in: | [show references] |