function copyRect(from, to, x1, y1, w, h, x2, y2) local fp, tp = from.pixels, to.pixels local fw, tw = from.width, to.width local ww, hh = w-1, h-1 for y=0, hh do local to, fo = x2+(y2+y)*tw+1, x1+(y1+y)*fw+1 for x=0, ww do tp[to+x] = fp[fo+x] end end 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
ID | Author/Program | Comment | Date |
---|---|---|---|
119 | #1000604 (pitcher) | 2015-08-18 00:46:46 | |
114 | #1000610 (pitcher) | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { function copyRect(from, to, x1, y1, w, h, x2, y2) local fp, tp = from.pixels, to.pixels local fw, tw = from.width, to.width local ww, hh = w-1, h-1 for y=0, hh do local to, fo = x2+(y2+y)*tw+1, x1+(y1+y)*fw+1 for x=0, ww do tp[to+x] = fp[fo+x] end end end }} | 2015-08-18 00:40:49 |
Recognizer | Recognition Result | Visualize | Recalc |
---|---|---|---|
#308 | 293 | [visualize] |