-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
19 lines (19 loc) · 1.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"name": "bad-apple",
"scripts": {
"scale-lores": "magick mogrify -path ./frames/lores/ -resize 48x32^ -gravity center -extent 48x32 -threshold 50% -quality 100 ./frames/original/*.png",
"scale-hires": "magick mogrify -path ./frames/hires/ -resize 96x64^ -gravity center -extent 96x64 -monochrome -quality 100 ./frames/original/*.png",
"encode-lores": "./encoder/smallest-size.js",
"encode-lores-revisited": "./encoder/smallest-size-revisited.js",
"encode-hires": "./encoder/highest-quality.js",
"build": "octopus player/index.8o bin/bad-apple-high-quality.8o HIRES && octopus player/index.8o bin/bad-apple-long-runtime.8o LORES SMOOTHING && cat bin/bad-apple-long-runtime.8o | pbcopy",
"build-all": "npm run build && npm run build-binaries && npm run build-html",
"build-binaries": "npm run build && octo bin/bad-apple-long-runtime.8o bin/bad-apple-long-runtime.ch8 && octo bin/bad-apple-high-quality.8o bin/bad-apple-high-quality.ch8",
"build-html": "mkdir -p dist && octo --options octo-config-lores.json bin/bad-apple-long-runtime.8o dist/long-runtime.html && octo --options octo-config-hires.json bin/bad-apple-high-quality.8o dist/high-quality.html"
},
"dependencies": {
"@chipcode/octopus": "^0.2.1",
"octo-assembler": "^0.1.4",
"pngjs": "^6.0.0"
}
}