2:475bf0c54822 | 3:7f619444bc2a |
---|---|
27 end | 27 end |
28 | 28 |
29 function render(xpm, f) | 29 function render(xpm, f) |
30 local err; | 30 local err; |
31 if type(f) == "string" then | 31 if type(f) == "string" then |
32 f = io.open(out, "w+"); | 32 f = io.open(f, "w+"); |
33 end | 33 end |
34 if io.type(f) ~= "file" then | 34 if io.type(f) ~= "file" then |
35 error("No valid output file", 2); | 35 error("No valid output file", 2); |
36 end | 36 end |
37 | 37 |