general mindustry schematic tools
Diffstat (limited to 'schem_image/base64.js')
| -rw-r--r-- | schem_image/base64.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/schem_image/base64.js b/schem_image/base64.js deleted file mode 100644 index 2290c17..0000000 --- a/schem_image/base64.js +++ /dev/null @@ -1,16 +0,0 @@ -import * as fs from 'fs' -import { - Schematic -} from 'mindustry-schematic-parser' - -const base64 = process.argv.slice(2)[0] -const schematic = Schematic.decode(base64) -console.log(schematic.name) - -// save a preview of the schematic -schematic - .render({ - background: false // disable background - }) - .then(nodeCanvas => nodeCanvas.toBuffer()) - .then(buffer => fs.writeFileSync('/tmp/mindustry_schematics/image.png', buffer))
\ No newline at end of file |