@thi.ng/color 5.6.11 → 5.6.13
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 +7 -3
- package/analog.d.ts +2 -2
- package/cosine-gradients.d.ts +2 -2
- package/int/int-int.d.ts +1 -1
- package/invert.d.ts +0 -5
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
> [!NOTE]
|
|
11
|
+
> This is one of 189 standalone projects, maintained as part
|
|
12
|
+
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
13
|
+
> and anti-framework.
|
|
14
|
+
>
|
|
15
|
+
> 🚀 Help me to work full-time on these projects by [sponsoring me on
|
|
16
|
+
> GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
|
|
13
17
|
|
|
14
18
|
For the Clojure version, please visit: [thi.ng/color-clj](https://thi.ng/color-clj)
|
|
15
19
|
|
package/analog.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<C
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng/vectors").Vec | null, TypedColor<any>, number, IRandom | undefined, import("@thi.ng/vectors").Vec>;
|
|
17
17
|
/**
|
|
18
|
-
* Similar to {@link
|
|
18
|
+
* Similar to {@link analogRgb}. Returns an analog color based on given HSVA
|
|
19
19
|
* color, with each channel randomly varied by given channel-specific delta
|
|
20
20
|
* amounts (and optionally given
|
|
21
21
|
* [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
|
|
@@ -38,7 +38,7 @@ export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const analogHsv: (out: Color | null, src: ReadonlyColor, deltaH: number, deltaS?: number, deltaV?: number, deltaA?: number, rnd?: IRandom) => import("@thi.ng/vectors").Vec;
|
|
40
40
|
/**
|
|
41
|
-
* Similar to {@link
|
|
41
|
+
* Similar to {@link analogHsv}. Returns an analog color based on given RGBA
|
|
42
42
|
* color, with each channel randomly varied by given delta amounts (and
|
|
43
43
|
* optionally given
|
|
44
44
|
* [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
|
package/cosine-gradients.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ export declare const cosineColor: (spec: CosGradientSpec, t: number) => Color;
|
|
|
25
25
|
* re-interpreted and/or transformed into another {@link Color} type.
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
|
-
* For CSS/SVG use cases you could use {@link
|
|
29
|
-
* to not convert, but reinterpret & wrap raw color values as SRGBA.
|
|
28
|
+
* For CSS/SVG use cases you could use {@link srgb} as transformation function
|
|
29
|
+
* to not convert, but to reinterpret & wrap raw color values as SRGBA.
|
|
30
30
|
*
|
|
31
31
|
* @param n -
|
|
32
32
|
* @param spec -
|
package/int/int-int.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const intArgb32Abgr32: import("@thi.ng/api").FnN;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Semantic sugar, alias for {@link intArgb32Abgr32}.
|
|
9
9
|
*/
|
|
10
10
|
export declare const intAbgr32Argb32: import("@thi.ng/api").FnN;
|
|
11
11
|
//# sourceMappingURL=int-int.d.ts.map
|
package/invert.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ import type { ColorOp, TypedColor } from "./api.js";
|
|
|
5
5
|
* @remarks
|
|
6
6
|
* If `out` is null, the resulting color will be written back into `src`.
|
|
7
7
|
*
|
|
8
|
-
* Also see {@link TypedColor.invert}.
|
|
9
|
-
*
|
|
10
8
|
* @param out - result
|
|
11
9
|
* @param src - source color
|
|
12
10
|
*/
|
|
@@ -14,9 +12,6 @@ export declare const invertRgb: ColorOp;
|
|
|
14
12
|
/**
|
|
15
13
|
* Inverts the lowest 24 bits of an ARGB int. Does not modify alpha.
|
|
16
14
|
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* Also see {@link TypedColor.invert}.
|
|
19
|
-
*
|
|
20
15
|
* @param src - packed RGB int
|
|
21
16
|
*/
|
|
22
17
|
export declare const invertInt: (src: number) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.13",
|
|
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",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"tool:swatches": "bun tools/index.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.9.
|
|
43
|
-
"@thi.ng/arrays": "^2.7.
|
|
44
|
-
"@thi.ng/binary": "^3.4.
|
|
45
|
-
"@thi.ng/checks": "^3.4.
|
|
46
|
-
"@thi.ng/compare": "^2.2.
|
|
47
|
-
"@thi.ng/compose": "^2.1.
|
|
48
|
-
"@thi.ng/defmulti": "^3.0.
|
|
49
|
-
"@thi.ng/errors": "^2.4.
|
|
50
|
-
"@thi.ng/math": "^5.
|
|
51
|
-
"@thi.ng/random": "^3.6.
|
|
52
|
-
"@thi.ng/strings": "^3.7.
|
|
53
|
-
"@thi.ng/transducers": "^8.8.
|
|
54
|
-
"@thi.ng/vectors": "^7.
|
|
42
|
+
"@thi.ng/api": "^8.9.19",
|
|
43
|
+
"@thi.ng/arrays": "^2.7.16",
|
|
44
|
+
"@thi.ng/binary": "^3.4.7",
|
|
45
|
+
"@thi.ng/checks": "^3.4.19",
|
|
46
|
+
"@thi.ng/compare": "^2.2.15",
|
|
47
|
+
"@thi.ng/compose": "^2.1.58",
|
|
48
|
+
"@thi.ng/defmulti": "^3.0.17",
|
|
49
|
+
"@thi.ng/errors": "^2.4.12",
|
|
50
|
+
"@thi.ng/math": "^5.8.1",
|
|
51
|
+
"@thi.ng/random": "^3.6.26",
|
|
52
|
+
"@thi.ng/strings": "^3.7.10",
|
|
53
|
+
"@thi.ng/transducers": "^8.8.23",
|
|
54
|
+
"@thi.ng/vectors": "^7.10.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -445,5 +445,5 @@
|
|
|
445
445
|
"vectors"
|
|
446
446
|
]
|
|
447
447
|
},
|
|
448
|
-
"gitHead": "
|
|
448
|
+
"gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
|
|
449
449
|
}
|