1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2025-07-25 04:24:09 +00:00

starting on js scripting language; worker msgs can run async functions (but we don't need to ... yet)

This commit is contained in:
Steven Hugg
2021-08-12 18:19:39 -05:00
parent bd00d98b77
commit a8b2b7c043
17 changed files with 1025 additions and 42 deletions

13
src/common/script/test.ts Normal file
View File

@@ -0,0 +1,13 @@
import 'fs';
import * as bitmap from './bitmap'
const fs = require('fs')
var data = fs.readFileSync('images/book_a2600.png');
//var data = fs.readFileSync('images/print-head.png');
console.log(data);
var png = bitmap.png.decode(data);
console.log(png)