MCPcopy Create free account
hub / github.com/deathcap/ProgrammerArt / coverArea

Function coverArea

scripts/stitcher.js:6–12  ·  view source on GitHub ↗
(h, w, cb)

Source from the content-addressed store, hash-verified

4var fs = require('fs');
5
6var coverArea = function(h, w, cb) {
7 for (var y = 0; y < h; y += 1) {
8 for (var x = 0; x < w; x += 1) {
9 cb(x, y);
10 }
11 }
12};
13
14var stitch = function(outFile, pathPrefix, matrix, tileWidth, tileHeight, cb) {
15 var tileColumns = matrix[0].length, tileRows = matrix.length;

Callers 1

stitchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected