Advertisement
Guest User

Untitled

a guest
Dec 12th, 2012
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tmpPath = path.join(dirPath, x + "*" + y + ".png");
  2. var tmpCanvas = new Canvas(chunk_size.width,chunk_size.height);
  3. var tmpCtx = canvas.getContext('2d');
  4. if (!fs.existsSync(tmpPath))
  5. {
  6.    
  7. }
  8. else
  9. {
  10.     s.readFile(tmpPath, function(err, squid){
  11.         if (err) throw err;
  12.         img = new Image;
  13.         img.src = squid;
  14.         ctx.drawImage(img, 0, 0, img.width / 4, img.height / 4);
  15.     });
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement