1 2function sk_scrape_startcanvas(c, fileName) 3end 4 5function sk_scrape_endcanvas(c, fileName) 6end 7 8local gXM_Count = 0 9local gXferModeTab = {} 10 11function sk_scrape_accumulate(t) 12 if not t.paint then 13 return 14 end 15 16 local xferMode = t.paint:getXfermode() 17 18 if xferMode then 19 local modeName = xferMode:getTypeName() 20 21 if gXferModeTab[modeName] == nil then 22 gXferModeTab[modeName] = 1; 23 else 24 gXferModeTab[modeName] = gXferModeTab[modeName] + 1 25 end 26 gXM_Count = gXM_Count + 1 27 end 28end 29 30function sk_scrape_summarize() 31 for key,value in pairs(gXferModeTab) do 32 io.write(key, ": ", value, "\n") 33 end 34 io.write("total: ", gXM_Count) 35end 36 37function test_summary() 38 io.write("just testing test_summary\n") 39end 40 41