@4bitlabs/hercmono.drv 0.0.0-stage → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.txt ADDED
@@ -0,0 +1,10 @@
1
+ Copyright (c) 2026, J. Holmes
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
4
+ provided that the above copyright notice and this permission notice appear in all copies.
5
+
6
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
7
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
8
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
9
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
10
+ THIS SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,13 @@
1
- # Temporary Holding Version
1
+ # @4bitlabs/hercmono.drv
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![License][license]][npm]
4
+ [![NPM Version][version]][npm]
5
+ [![NPM Downloads][dl]][npm]
6
+ [![Ko-fi][kofibadge]][kofi]
7
+
8
+ [npm]: https://www.npmjs.com/package/@4bitlabs/hercmono.drv
9
+ [version]: https://img.shields.io/npm/v/%404bitlabs%2Fhercmono.drv
10
+ [license]: https://img.shields.io/npm/l/%404bitlabs%2Fhercmono.drv
11
+ [dl]: https://img.shields.io/npm/dy/%404bitlabs%2Fhercmono.drv
12
+ [kofibadge]: https://shields.io/badge/ko--fi-donate-ff5f5f?logo=ko-fi&style=for-the-badgeKo-fi
13
+ [kofi]: https://ko-fi.com/thirtytwo
@@ -0,0 +1,34 @@
1
+ import { PaletteFilter } from "@4bitlabs/image";
2
+ //#region src/hercules-dithers.d.ts
3
+ type DitherPreset = "astro-chicken" | "pq2" | "hoyle" | "cbquest-demo";
4
+ //#endregion
5
+ //#region src/phosphors.d.ts
6
+ /**
7
+ * The supported standard phosphor types for monochrome CRT rendering.
8
+ *
9
+ * - `"P1"` - 525nm, green phosphor. A common phosphor type found in computer monitors of the era.
10
+ * - `"P2"` - 543nm, blue-green phosphor. Mostly used in oscilloscopes.
11
+ * - `"P3"` - 602nm, amber phosphor. A common phosphor type found in computer monitors of the era.
12
+ * - `"P4"` - 565, 540nm, "white" phosphor. A common phosphor type found in computer monitors and TV CRTs.
13
+ * - `"P6"` - 565, 460nm, "white" phosphor. A common phosphor type found in computer monitors and TV CRTs.
14
+ *
15
+ * @see {@link https://en.wikipedia.org/wiki/Phosphor}
16
+ * @see {@link https://www.labguysworld.com/crt_phosphor_research.pdf}
17
+ */
18
+ type PhosphorTypes = "P1" | "P2" | "P3" | "P4" | "P6";
19
+ //#endregion
20
+ //#region src/hercmono-filter.d.ts
21
+ interface HercMonoOptions {
22
+ /** Selected dither patterns. @defaultValue `"pq2"` */
23
+ patterns?: DitherPreset;
24
+ /** Selected phosphor type. @defaultValue `"P1"` */
25
+ phosphors?: PhosphorTypes;
26
+ }
27
+ /**
28
+ * @param options.patterns
29
+ * @param options.phosphors
30
+ */
31
+ declare const hercMonoFilter: (options?: HercMonoOptions) => PaletteFilter;
32
+ //#endregion
33
+ export { type DitherPreset, type HercMonoOptions, type PhosphorTypes, hercMonoFilter };
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/hercules-dithers.ts","../src/phosphors.ts","../src/hercmono-filter.ts"],"mappings":";;KAmJY;;;;;;;;;;;;;;;KCjGA;;;UCpCK;;EAEf,WAAW;;EAEX,YAAY;;;;;;cAWD,iBACX,UAAS,oBACR"}
package/dist/index.js ADDED
@@ -0,0 +1,99 @@
1
+ import { screenFilter } from "@4bitlabs/blend-filters";
2
+ import { boxBlur, hBoxBlur } from "@4bitlabs/blur-filters";
3
+ import { asRGBA, createImageData, padImageFilter } from "@4bitlabs/image";
4
+ import { nearestNeighbor } from "@4bitlabs/resize-filters";
5
+ import { toUint32 } from "@4bitlabs/color-space/srgb";
6
+ import { create, mix, toSRGB } from "@4bitlabs/color-space/xyz";
7
+ import { wavelengthI } from "@4bitlabs/wavelength/xyz";
8
+ //#region src/hercules-dithers.ts
9
+ const d63b31d4b60aea159d7bb667995632d6fcd184e8 = Uint8Array.of(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 4, 0, 0, 0, 16, 8, 1, 32, 4, 64, 2, 16, 128, 0, 85, 0, 85, 0, 85, 0, 85, 68, 17, 68, 17, 68, 17, 68, 17, 0, 17, 0, 17, 0, 17, 0, 17, 17, 34, 68, 136, 17, 34, 68, 136, 85, 170, 85, 170, 85, 170, 85, 170, 0, 68, 0, 17, 0, 68, 0, 17, 255, 175, 255, 250, 255, 175, 255, 250, 85, 187, 170, 238, 85, 187, 170, 238, 247, 254, 223, 251, 191, 253, 239, 127, 255, 85, 255, 85, 255, 85, 255, 85, 221, 238, 119, 187, 221, 238, 119, 187, 251, 254, 223, 247, 127, 223, 253, 127, 255, 255, 255, 255, 255, 255, 255, 255);
10
+ const DitherPresets = {
11
+ "astro-chicken": d63b31d4b60aea159d7bb667995632d6fcd184e8,
12
+ hoyle: d63b31d4b60aea159d7bb667995632d6fcd184e8,
13
+ pq2: d63b31d4b60aea159d7bb667995632d6fcd184e8,
14
+ "cbquest-demo": d63b31d4b60aea159d7bb667995632d6fcd184e8
15
+ };
16
+ //#endregion
17
+ //#region src/phosphors.ts
18
+ const lerp = (a, b, t) => a * (1 - t) + b * t;
19
+ const loplerp = (mid, [min, max], value) => {
20
+ return value >= 0 ? lerp(mid, max, value) : lerp(mid, min, -value);
21
+ };
22
+ const gaussian = (x, w = 1 / 2) => Math.exp(-((x / w) ** 2));
23
+ const phosphorSample = (mid, range, intensity = 1) => {
24
+ const steps = 32;
25
+ const color = create(0, 0, 0);
26
+ const tmp = create(0, 0, 0);
27
+ for (let i = -32; i <= steps; i++) {
28
+ const x = i / steps;
29
+ const v = loplerp(mid, range, x);
30
+ wavelengthI(v, intensity * gaussian(x), tmp);
31
+ color[1] += tmp[1];
32
+ color[2] += tmp[2];
33
+ color[3] += tmp[3];
34
+ }
35
+ color[1] /= steps;
36
+ color[2] /= steps;
37
+ color[3] /= steps;
38
+ return color;
39
+ };
40
+ const Phosphors = {
41
+ P1: [
42
+ toUint32(toSRGB(phosphorSample(525, [490, 580]))),
43
+ toUint32(toSRGB(wavelengthI(525, .25))),
44
+ 4278190080
45
+ ],
46
+ P2: [
47
+ toUint32(toSRGB(phosphorSample(534, [450, 640]))),
48
+ toUint32(toSRGB(wavelengthI(534, .125))),
49
+ 4278190080
50
+ ],
51
+ P3: [
52
+ toUint32(toSRGB(phosphorSample(602, [504, 700]))),
53
+ toUint32(toSRGB(wavelengthI(602, .25))),
54
+ 4278190080
55
+ ],
56
+ P4: [
57
+ toUint32(toSRGB(mix(phosphorSample(565, [390, 663], 1), phosphorSample(435, [390, 663], 1), 1 / 2))),
58
+ toUint32(toSRGB(mix(phosphorSample(565, [390, 663], 1 / 2), phosphorSample(435, [390, 663], 1 / 2), 2 / 3))),
59
+ 4278190080
60
+ ],
61
+ P6: [
62
+ toUint32(toSRGB(mix(phosphorSample(563, [416, 695], 1), phosphorSample(460, [416, 695], 1), 1 / 3))),
63
+ toUint32(toSRGB(mix(phosphorSample(563, [416, 695], 1), phosphorSample(460, [416, 695], 1), .5))),
64
+ 4278190080
65
+ ]
66
+ };
67
+ //#endregion
68
+ //#region src/hercmono-filter.ts
69
+ const hercPad = padImageFilter([
70
+ 57,
71
+ 40,
72
+ 42
73
+ ], { backgroundColor: 4278190080 });
74
+ const blur = boxBlur(2);
75
+ const hBlur = hBoxBlur(16);
76
+ const hercMonoFilter = (options = {}) => {
77
+ const { phosphors = "P1", patterns = "pq2" } = options;
78
+ const patternSet = DitherPresets[patterns];
79
+ const [on, glow, off] = Phosphors[phosphors];
80
+ return (source) => {
81
+ const resized = nearestNeighbor([2, 1.5])(source);
82
+ const pixelsImg = createImageData(resized.width, resized.height);
83
+ const glowImg = createImageData(resized.width, resized.height);
84
+ const outRGBA = asRGBA(pixelsImg);
85
+ const glowRGBA = asRGBA(glowImg);
86
+ for (let y = 0; y < resized.height; y++) for (let x = 0; x < resized.width; x++) {
87
+ const idx = x + y * resized.width;
88
+ const patternIdx = resized.pixels[idx];
89
+ const set = patternSet[patternIdx * 8 + y % 8] & 1 << 7 - x % 8;
90
+ outRGBA[idx] = set ? on : off;
91
+ glowRGBA[idx] = set ? glow : off;
92
+ }
93
+ return screenFilter(hercPad(pixelsImg), hBlur(blur(hercPad(glowImg))));
94
+ };
95
+ };
96
+ //#endregion
97
+ export { hercMonoFilter };
98
+
99
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/hercules-dithers.ts","../src/phosphors.ts","../src/hercmono-filter.ts"],"sourcesContent":["const d63b31d4b60aea159d7bb667995632d6fcd184e8 = Uint8Array.of(\n /** pattern 0 */\n 0b00000000,\n 0b00000000,\n 0b00000000,\n 0b00000000,\n 0b00000000,\n 0b00000000,\n 0b00000000,\n 0b00000000,\n /** pattern 1 */\n 0b0000000,\n 0b0000001,\n 0b0000000,\n 0b0000100,\n 0b0000000,\n 0b0000000,\n 0b0000000,\n 0b0010000,\n /** pattern 2 */\n 0b00001000,\n 0b00000001,\n 0b00100000,\n 0b00000100,\n 0b01000000,\n 0b00000010,\n 0b00010000,\n 0b10000000,\n /** pattern 3 */\n 0b00000000,\n 0b01010101,\n 0b00000000,\n 0b01010101,\n 0b00000000,\n 0b01010101,\n 0b00000000,\n 0b01010101,\n /** pattern 4 */\n 0b01000100,\n 0b00010001,\n 0b01000100,\n 0b00010001,\n 0b01000100,\n 0b00010001,\n 0b01000100,\n 0b00010001,\n /** pattern 5 */\n 0b00000000,\n 0b00010001,\n 0b00000000,\n 0b00010001,\n 0b00000000,\n 0b00010001,\n 0b00000000,\n 0b00010001,\n /** pattern 6 */\n 0b00010001,\n 0b00100010,\n 0b01000100,\n 0b10001000,\n 0b00010001,\n 0b00100010,\n 0b01000100,\n 0b10001000,\n /** pattern 7 */\n 0b01010101,\n 0b10101010,\n 0b01010101,\n 0b10101010,\n 0b01010101,\n 0b10101010,\n 0b01010101,\n 0b10101010,\n /** pattern 8 */\n 0b00000000,\n 0b01000100,\n 0b00000000,\n 0b00010001,\n 0b00000000,\n 0b01000100,\n 0b00000000,\n 0b00010001,\n /** pattern 9 */\n 0b11111111,\n 0b10101111,\n 0b11111111,\n 0b11111010,\n 0b11111111,\n 0b10101111,\n 0b11111111,\n 0b11111010,\n /** pattern A */\n 0b01010101,\n 0b10111011,\n 0b10101010,\n 0b11101110,\n 0b01010101,\n 0b10111011,\n 0b10101010,\n 0b11101110,\n /** pattern B */\n 0b11110111,\n 0b11111110,\n 0b11011111,\n 0b11111011,\n 0b10111111,\n 0b11111101,\n 0b11101111,\n 0b01111111,\n /** pattern C */\n 0b11111111,\n 0b01010101,\n 0b11111111,\n 0b01010101,\n 0b11111111,\n 0b01010101,\n 0b11111111,\n 0b01010101,\n /** pattern D */\n 0b11011101,\n 0b11101110,\n 0b01110111,\n 0b10111011,\n 0b11011101,\n 0b11101110,\n 0b01110111,\n 0b10111011,\n /** pattern E */\n 0b11111011,\n 0b11111110,\n 0b11011111,\n 0b11110111,\n 0b01111111,\n 0b11011111,\n 0b11111101,\n 0b01111111,\n /** pattern F */\n 0b11111111,\n 0b11111111,\n 0b11111111,\n 0b11111111,\n 0b11111111,\n 0b11111111,\n 0b11111111,\n 0b11111111,\n);\n\nexport type DitherPreset = 'astro-chicken' | 'pq2' | 'hoyle' | 'cbquest-demo';\n\nexport const DitherPresets: { [key in DitherPreset]: Uint8Array } = {\n 'astro-chicken': d63b31d4b60aea159d7bb667995632d6fcd184e8,\n hoyle: d63b31d4b60aea159d7bb667995632d6fcd184e8,\n pq2: d63b31d4b60aea159d7bb667995632d6fcd184e8,\n 'cbquest-demo': d63b31d4b60aea159d7bb667995632d6fcd184e8,\n};\n","import { toUint32 } from '@4bitlabs/color-space/srgb';\nimport { toSRGB, type XYZTuple, create, mix } from '@4bitlabs/color-space/xyz';\nimport { wavelengthI } from '@4bitlabs/wavelength/xyz';\n\nexport const lerp = (a: number, b: number, t: number): number =>\n a * (1 - t) + b * t;\n\nconst loplerp = (mid: number, [min, max]: [number, number], value: number) => {\n return value >= 0 ? lerp(mid, max, value) : lerp(mid, min, -value);\n};\n\nconst gaussian = (x: number, w: number = 1 / 2) => Math.exp(-((x / w) ** 2));\n\nconst phosphorSample = (\n mid: number,\n range: [number, number],\n intensity = 1,\n): XYZTuple => {\n const steps = 32;\n const color = create(0, 0, 0);\n const tmp = create(0, 0, 0);\n\n for (let i = -steps; i <= steps; i++) {\n const x = i / steps;\n const v = loplerp(mid, range, x);\n wavelengthI(v, intensity * gaussian(x), tmp);\n color[1] += tmp[1];\n color[2] += tmp[2];\n color[3] += tmp[3];\n }\n\n color[1] /= steps;\n color[2] /= steps;\n color[3] /= steps;\n\n return color;\n};\n\n/**\n * The supported standard phosphor types for monochrome CRT rendering.\n *\n * - `\"P1\"` - 525nm, green phosphor. A common phosphor type found in computer monitors of the era.\n * - `\"P2\"` - 543nm, blue-green phosphor. Mostly used in oscilloscopes.\n * - `\"P3\"` - 602nm, amber phosphor. A common phosphor type found in computer monitors of the era.\n * - `\"P4\"` - 565, 540nm, \"white\" phosphor. A common phosphor type found in computer monitors and TV CRTs.\n * - `\"P6\"` - 565, 460nm, \"white\" phosphor. A common phosphor type found in computer monitors and TV CRTs.\n *\n * @see {@link https://en.wikipedia.org/wiki/Phosphor}\n * @see {@link https://www.labguysworld.com/crt_phosphor_research.pdf}\n */\nexport type PhosphorTypes = 'P1' | 'P2' | 'P3' | 'P4' | 'P6';\nexport type PhosphorColors = [on: number, glow: number, off: number];\n\nexport const Phosphors: { [key in PhosphorTypes]: PhosphorColors } = {\n P1: [\n toUint32(toSRGB(phosphorSample(525, [490, 580]))),\n toUint32(toSRGB(wavelengthI(525, 0.25))),\n 0xff000000,\n ],\n P2: [\n toUint32(toSRGB(phosphorSample(534, [450, 640]))),\n toUint32(toSRGB(wavelengthI(534, 0.125))),\n 0xff000000,\n ],\n P3: [\n toUint32(toSRGB(phosphorSample(602, [504, 700]))),\n toUint32(toSRGB(wavelengthI(602, 0.25))),\n 0xff000000,\n ],\n P4: [\n toUint32(\n toSRGB(\n mix(\n phosphorSample(565, [390, 663], 1),\n phosphorSample(435, [390, 663], 1),\n 1 / 2,\n ),\n ),\n ),\n toUint32(\n toSRGB(\n mix(\n phosphorSample(565, [390, 663], 1 / 2),\n phosphorSample(435, [390, 663], 1 / 2),\n 2 / 3,\n ),\n ),\n ),\n 0xff000000,\n ],\n P6: [\n toUint32(\n toSRGB(\n mix(\n phosphorSample(563, [416, 695], 1),\n phosphorSample(460, [416, 695], 1),\n 1 / 3,\n ),\n ),\n ),\n toUint32(\n toSRGB(\n mix(\n phosphorSample(563, [416, 695], 1),\n phosphorSample(460, [416, 695], 1),\n 0.5,\n ),\n ),\n ),\n 0xff000000,\n ],\n};\n","import { screenFilter } from '@4bitlabs/blend-filters';\nimport { boxBlur, hBoxBlur } from '@4bitlabs/blur-filters';\nimport {\n type PaletteFilter,\n type IndexedPixelData,\n asRGBA,\n createImageData,\n padImageFilter,\n} from '@4bitlabs/image';\nimport { nearestNeighbor } from '@4bitlabs/resize-filters';\n\nimport { type DitherPreset, DitherPresets } from './hercules-dithers.js';\nimport { Phosphors, type PhosphorTypes } from './phosphors.js';\n\nexport interface HercMonoOptions {\n /** Selected dither patterns. @defaultValue `\"pq2\"` */\n patterns?: DitherPreset;\n /** Selected phosphor type. @defaultValue `\"P1\"` */\n phosphors?: PhosphorTypes;\n}\n\nconst hercPad = padImageFilter([57, 40, 42], { backgroundColor: 0xff000000 });\nconst blur = boxBlur(2);\nconst hBlur = hBoxBlur(16);\n\n/**\n * @param options.patterns\n * @param options.phosphors\n */\nexport const hercMonoFilter = (\n options: HercMonoOptions = {},\n): PaletteFilter => {\n const { phosphors = 'P1', patterns = 'pq2' } = options;\n const patternSet = DitherPresets[patterns];\n const [on, glow, off] = Phosphors[phosphors];\n\n return (source: IndexedPixelData) => {\n const resize = nearestNeighbor([2, 1.5]);\n const resized = resize(source);\n const pixelsImg = createImageData(resized.width, resized.height);\n const glowImg = createImageData(resized.width, resized.height);\n const outRGBA = asRGBA(pixelsImg);\n const glowRGBA = asRGBA(glowImg);\n\n for (let y = 0; y < resized.height; y++)\n for (let x = 0; x < resized.width; x++) {\n const idx = x + y * resized.width;\n const patternIdx = resized.pixels[idx];\n const set = patternSet[patternIdx * 8 + (y % 8)] & (1 << (7 - (x % 8)));\n outRGBA[idx] = set ? on : off;\n glowRGBA[idx] = set ? glow : off;\n }\n\n return screenFilter(hercPad(pixelsImg), hBlur(blur(hercPad(glowImg))));\n };\n};\n"],"mappings":";;;;;;;;AAAA,MAAM,2CAA2C,WAAW,GAE1D,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GAEA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IAEA,GACA,GACA,IACA,GACA,IACA,GACA,IACA,KAEA,GACA,IACA,GACA,IACA,GACA,IACA,GACA,IAEA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IAEA,GACA,IACA,GACA,IACA,GACA,IACA,GACA,IAEA,IACA,IACA,IACA,KACA,IACA,IACA,IACA,KAEA,IACA,KACA,IACA,KACA,IACA,KACA,IACA,KAEA,GACA,IACA,GACA,IACA,GACA,IACA,GACA,IAEA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KAEA,IACA,KACA,KACA,KACA,IACA,KACA,KACA,KAEA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KAEA,KACA,IACA,KACA,IAC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O,QAAQ,MAAM;EAC7D,MAAM,UAAU,OAAO,SAAS;EAChC,MAAM,WAAW,OAAO,OAAO;EAE/B,KAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAClC,KAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,OAAO,KAAK;GACtC,MAAM,MAAM,IAAI,IAAI,QAAQ;GAC5B,MAAM,aAAa,QAAQ,OAAO;GAClC,MAAM,MAAM,WAAW,aAAa,IAAK,IAAI,KAAO,KAAM,IAAK,IAAI;GACnE,QAAQ,OAAO,MAAM,KAAK;GAC1B,SAAS,OAAO,MAAM,OAAO;EAC/B;EAEF,OAAO,aAAa,QAAQ,SAAS,GAAG,MAAM,KAAK,QAAQ,OAAO,CAAC,CAAC,CAAC;CACvE;AACF"}
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@4bitlabs/hercmono.drv",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.2",
4
+ "description": "A render filter for @4bitlabs/sci0-renderer generated PIC resources to replicate HERCMONO.DRV",
5
+ "keywords": [
6
+ "hercmono.drv"
7
+ ],
8
+ "homepage": "https://github.com/32bitkid/sci.js/tree/main/libs/hercmono.drv#readme",
9
+ "bugs": {
10
+ "url": "https://github.com/32bitkid/sci.js/issues"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/32bitkid/sci.js.git"
15
+ },
16
+ "license": "ISC",
17
+ "author": "J. Holmes <j@holmes.codes>",
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "./dist/**/*"
27
+ ],
28
+ "scripts": {
29
+ "build": "tsc --noEmit && tsdown",
30
+ "clean:wipe": "rimraf ./dist",
31
+ "prepublishOnly": "npm run build"
32
+ },
33
+ "dependencies": {
34
+ "@4bitlabs/blend-filters": "^0.1.1",
35
+ "@4bitlabs/blur-filters": "^2.1.3",
36
+ "@4bitlabs/color-space": "^3.1.0",
37
+ "@4bitlabs/image": "^6.0.0",
38
+ "@4bitlabs/resize-filters": "^2.1.0",
39
+ "@4bitlabs/wavelength": "^0.1.2"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "gitHead": "95216b48523c5d0c9a8907f2ac8f137af83a9152"
45
+ }