We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b77c6c commit 31d8018Copy full SHA for 31d8018
2018/17/visualization.js
@@ -40,14 +40,14 @@ const hasBinary = (bin) => {
40
const grid = new Grid(input);
41
const ground = new Ground({ grid });
42
43
-fs.writeFileSync('grid.txt', ground.toString());
44
(async () => {
45
let empty_grid_image_buffer = await ground.toImage({
46
callback: async ({ image }) => {
47
return await image.getBufferAsync(Jimp.MIME_PNG);
48
},
49
});
50
fs.writeFileSync('grid.png', empty_grid_image_buffer);
+ fs.writeFileSync('grid.txt', ground.toString());
51
52
if (hasBinary('ffmpeg')) {
53
await ground.fill(true);
0 commit comments