mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-07-16 05:24:07 +00:00
14 lines
257 B
TypeScript
14 lines
257 B
TypeScript
|
|
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)
|
|
|