@thi.ng/pixel-dither 1.1.186 → 1.1.188
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/README.md +1 -1
- package/dither.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 212 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/dither.js
CHANGED
|
@@ -4,7 +4,7 @@ const ditherWith = (kernel, img, opts = {}) => {
|
|
|
4
4
|
const { format, width, height } = img;
|
|
5
5
|
const { ox, oy, weights, shift } = kernel;
|
|
6
6
|
let p, err;
|
|
7
|
-
for (
|
|
7
|
+
for (const cid of channels || __range(format.channels.length)) {
|
|
8
8
|
const cimg = img.getChannel(cid);
|
|
9
9
|
const chan = format.channels[cid];
|
|
10
10
|
const $thresh = chan.num * threshold;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/pixel-dither",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.188",
|
|
4
4
|
"description": "Extensible image dithering w/ various algorithm presets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/checks": "^3.
|
|
43
|
-
"@thi.ng/math": "^5.
|
|
44
|
-
"@thi.ng/pixel": "^7.5.
|
|
42
|
+
"@thi.ng/checks": "^3.8.1",
|
|
43
|
+
"@thi.ng/math": "^5.15.0",
|
|
44
|
+
"@thi.ng/pixel": "^7.5.20"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"esbuild": "^0.27.0",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"parent": "@thi.ng/pixel",
|
|
117
117
|
"year": 2021
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "e7a21b9d2a188fa04d4c893d8531c40fbc0f4c06\n"
|
|
120
120
|
}
|