@thi.ng/color 5.4.6 → 5.4.7
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/CHANGELOG.md +1 -1
- package/README.md +1 -0
- package/package.json +17 -17
- package/swatches.d.ts +5 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -638,6 +638,7 @@ A selection:
|
|
|
638
638
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-indexed.jpg" width="240"/> | Image dithering and remapping using indexed palettes | [Demo](https://demo.thi.ng/umbrella/pixel-indexed/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pixel-indexed) |
|
|
639
639
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-sorting.png" width="240"/> | Interactive pixel sorting tool using thi.ng/color & thi.ng/pixel | [Demo](https://demo.thi.ng/umbrella/pixel-sorting/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pixel-sorting) |
|
|
640
640
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/shader-ast-workers.jpg" width="240"/> | Fork-join worker-based raymarch renderer (JS/CPU only) | [Demo](https://demo.thi.ng/umbrella/shader-ast-workers/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/shader-ast-workers) |
|
|
641
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/trace-bitmap.jpg" width="240"/> | Multi-layer vectorization & dithering of bitmap images | [Demo](https://demo.thi.ng/umbrella/trace-bitmap/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/trace-bitmap) |
|
|
641
642
|
|
|
642
643
|
## API
|
|
643
644
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.7",
|
|
4
4
|
"description": "Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
"tool:swatches": "tools:node-esm tools/index.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@thi.ng/api": "^8.7.
|
|
42
|
-
"@thi.ng/arrays": "^2.5.
|
|
43
|
-
"@thi.ng/binary": "^3.3.
|
|
44
|
-
"@thi.ng/checks": "^3.3.
|
|
45
|
-
"@thi.ng/compare": "^2.1.
|
|
46
|
-
"@thi.ng/compose": "^2.1.
|
|
47
|
-
"@thi.ng/defmulti": "^2.1.
|
|
48
|
-
"@thi.ng/errors": "^2.2.
|
|
49
|
-
"@thi.ng/math": "^5.4.
|
|
50
|
-
"@thi.ng/random": "^3.3.
|
|
51
|
-
"@thi.ng/strings": "^3.4.
|
|
52
|
-
"@thi.ng/transducers": "^8.4.
|
|
53
|
-
"@thi.ng/vectors": "^7.6.
|
|
41
|
+
"@thi.ng/api": "^8.7.6",
|
|
42
|
+
"@thi.ng/arrays": "^2.5.10",
|
|
43
|
+
"@thi.ng/binary": "^3.3.23",
|
|
44
|
+
"@thi.ng/checks": "^3.3.12",
|
|
45
|
+
"@thi.ng/compare": "^2.1.29",
|
|
46
|
+
"@thi.ng/compose": "^2.1.31",
|
|
47
|
+
"@thi.ng/defmulti": "^2.1.35",
|
|
48
|
+
"@thi.ng/errors": "^2.2.15",
|
|
49
|
+
"@thi.ng/math": "^5.4.7",
|
|
50
|
+
"@thi.ng/random": "^3.3.29",
|
|
51
|
+
"@thi.ng/strings": "^3.4.4",
|
|
52
|
+
"@thi.ng/transducers": "^8.4.2",
|
|
53
|
+
"@thi.ng/vectors": "^7.6.11"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@microsoft/api-extractor": "^7.34.4",
|
|
57
|
-
"@thi.ng/testament": "^0.3.
|
|
57
|
+
"@thi.ng/testament": "^0.3.15",
|
|
58
58
|
"rimraf": "^4.4.1",
|
|
59
59
|
"tools": "^0.0.1",
|
|
60
60
|
"typedoc": "^0.23.28",
|
|
61
|
-
"typescript": "^5.0.
|
|
61
|
+
"typescript": "^5.0.4"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"color",
|
|
@@ -445,5 +445,5 @@
|
|
|
445
445
|
"vectors"
|
|
446
446
|
]
|
|
447
447
|
},
|
|
448
|
-
"gitHead": "
|
|
448
|
+
"gitHead": "abcedd9e4e06a4b631f363610eec572f79b571c1\n"
|
|
449
449
|
}
|
package/swatches.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Fn2, IObjectOf } from "@thi.ng/api";
|
|
2
2
|
import type { ReadonlyColor } from "./api.js";
|
|
3
|
-
export declare const swatches: (cols: (ReadonlyColor | string)[], shapeFn: Fn2<ReadonlyColor | string, number, any[]>, attribs?: IObjectOf<any>) => (string | IObjectOf<any>)[];
|
|
4
|
-
export declare const swatchesH: (cols: (ReadonlyColor | string)[], w?: number, h?: number, gap?: number, attribs?: IObjectOf<any>) => (string | IObjectOf<any>)[];
|
|
5
|
-
export declare const dotsH: (cols: (ReadonlyColor | string)[], r?: number, gap?: number, attribs?: IObjectOf<any>) => (string | IObjectOf<any>)[];
|
|
6
|
-
export declare const swatchesV: (cols: (ReadonlyColor | string)[], w?: number, h?: number, gap?: number, attribs?: IObjectOf<any>) => (string | IObjectOf<any>)[];
|
|
7
|
-
export declare const dotsV: (cols: (ReadonlyColor | string)[], r?: number, gap?: number, attribs?: IObjectOf<any>) => (string | IObjectOf<any>)[];
|
|
3
|
+
export declare const swatches: (cols: (ReadonlyColor | string)[], shapeFn: Fn2<ReadonlyColor | string, number, any[]>, attribs?: IObjectOf<any>) => (string | any[] | IObjectOf<any>)[];
|
|
4
|
+
export declare const swatchesH: (cols: (ReadonlyColor | string)[], w?: number, h?: number, gap?: number, attribs?: IObjectOf<any>) => (string | any[] | IObjectOf<any>)[];
|
|
5
|
+
export declare const dotsH: (cols: (ReadonlyColor | string)[], r?: number, gap?: number, attribs?: IObjectOf<any>) => (string | any[] | IObjectOf<any>)[];
|
|
6
|
+
export declare const swatchesV: (cols: (ReadonlyColor | string)[], w?: number, h?: number, gap?: number, attribs?: IObjectOf<any>) => (string | any[] | IObjectOf<any>)[];
|
|
7
|
+
export declare const dotsV: (cols: (ReadonlyColor | string)[], r?: number, gap?: number, attribs?: IObjectOf<any>) => (string | any[] | IObjectOf<any>)[];
|
|
8
8
|
//# sourceMappingURL=swatches.d.ts.map
|