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:
13
src/common/script/test.ts
Normal file
13
src/common/script/test.ts
Normal 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)
|
||||
|
Reference in New Issue
Block a user