@thi.ng/color 4.0.1 → 4.0.3
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 +16 -0
- package/README.md +5 -5
- package/api.js +0 -2
- package/defcolor.js +0 -3
- package/int/int.js +0 -4
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.2...@thi.ng/color@4.0.3) (2021-10-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @thi.ng/color
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.1...@thi.ng/color@4.0.2) (2021-10-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @thi.ng/color
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.0...@thi.ng/color@4.0.1) (2021-10-13)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @thi.ng/color
|
package/README.md
CHANGED
|
@@ -139,9 +139,9 @@ css(rgb(labD50("#ff0")))
|
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
Additionally, colors can be created from black body temperatures
|
|
142
|
-
([`kelvinRgb()`](https://
|
|
142
|
+
([`kelvinRgb()`](https://docs.thi.ng/umbrella/color/modules.html#kelvinRgb))
|
|
143
143
|
or wavelengths
|
|
144
|
-
([`wavelengthXyz()`](https://
|
|
144
|
+
([`wavelengthXyz()`](https://docs.thi.ng/umbrella/color/modules.html#wavelengthXyz)).
|
|
145
145
|
|
|
146
146
|

|
|
147
147
|
|
|
@@ -464,7 +464,7 @@ writeFileSync(
|
|
|
464
464
|
- [Original article](http://www.iquilezles.org/www/articles/palettes/palettes.htm)
|
|
465
465
|
- [Gradient generator](http://dev.thi.ng/gradients/)
|
|
466
466
|
|
|
467
|
-
The following presets are bundled (in [`cosine-gradients.ts`](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/
|
|
467
|
+
The following presets are bundled (in [`cosine-gradients.ts`](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/cosine-gradients.ts)):
|
|
468
468
|
|
|
469
469
|
| Preview | Gradient ID |
|
|
470
470
|
|-----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
|
|
@@ -545,7 +545,7 @@ multiCosineGradient({
|
|
|
545
545
|
### RGB color transformations
|
|
546
546
|
|
|
547
547
|
RGB [color matrix
|
|
548
|
-
transformations](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/
|
|
548
|
+
transformations](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/transform.ts),
|
|
549
549
|
including parametric preset transforms:
|
|
550
550
|
|
|
551
551
|
- brightness
|
|
@@ -601,7 +601,7 @@ node --experimental-repl-await
|
|
|
601
601
|
> const color = await import("@thi.ng/color");
|
|
602
602
|
```
|
|
603
603
|
|
|
604
|
-
Package sizes (gzipped, pre-treeshake): ESM: 14.
|
|
604
|
+
Package sizes (gzipped, pre-treeshake): ESM: 14.19 KB
|
|
605
605
|
|
|
606
606
|
## Dependencies
|
|
607
607
|
|
package/api.js
CHANGED
package/defcolor.js
CHANGED
package/int/int.js
CHANGED
|
@@ -13,10 +13,6 @@ import { srgb } from "../srgb/srgb.js";
|
|
|
13
13
|
import { srgbIntAbgr32, srgbIntArgb32 } from "../srgb/srgb-int.js";
|
|
14
14
|
import { intArgb32Srgb } from "./int-srgb.js";
|
|
15
15
|
export class Int32 {
|
|
16
|
-
offset;
|
|
17
|
-
stride;
|
|
18
|
-
buf;
|
|
19
|
-
value;
|
|
20
16
|
constructor(buf, offset = 0, stride = 1) {
|
|
21
17
|
this.offset = offset;
|
|
22
18
|
this.stride = stride;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
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",
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"tool:swatches": "../../scripts/node-esm tools/index.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.0.
|
|
39
|
-
"@thi.ng/arrays": "^2.0.
|
|
40
|
-
"@thi.ng/binary": "^3.0.
|
|
41
|
-
"@thi.ng/checks": "^3.0.
|
|
42
|
-
"@thi.ng/compare": "^2.0.
|
|
43
|
-
"@thi.ng/compose": "^2.0.
|
|
44
|
-
"@thi.ng/defmulti": "^2.0.
|
|
45
|
-
"@thi.ng/errors": "^2.0.
|
|
46
|
-
"@thi.ng/math": "^5.0.
|
|
47
|
-
"@thi.ng/random": "^3.0.
|
|
48
|
-
"@thi.ng/strings": "^3.0.
|
|
49
|
-
"@thi.ng/transducers": "^8.0.
|
|
50
|
-
"@thi.ng/vectors": "^7.0.
|
|
38
|
+
"@thi.ng/api": "^8.0.3",
|
|
39
|
+
"@thi.ng/arrays": "^2.0.3",
|
|
40
|
+
"@thi.ng/binary": "^3.0.3",
|
|
41
|
+
"@thi.ng/checks": "^3.0.3",
|
|
42
|
+
"@thi.ng/compare": "^2.0.3",
|
|
43
|
+
"@thi.ng/compose": "^2.0.3",
|
|
44
|
+
"@thi.ng/defmulti": "^2.0.3",
|
|
45
|
+
"@thi.ng/errors": "^2.0.3",
|
|
46
|
+
"@thi.ng/math": "^5.0.3",
|
|
47
|
+
"@thi.ng/random": "^3.0.3",
|
|
48
|
+
"@thi.ng/strings": "^3.0.3",
|
|
49
|
+
"@thi.ng/transducers": "^8.0.3",
|
|
50
|
+
"@thi.ng/vectors": "^7.0.3"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@thi.ng/testament": "^0.1.
|
|
53
|
+
"@thi.ng/testament": "^0.1.3"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"color",
|
|
@@ -394,5 +394,5 @@
|
|
|
394
394
|
"vectors"
|
|
395
395
|
]
|
|
396
396
|
},
|
|
397
|
-
"gitHead": "
|
|
397
|
+
"gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
|
|
398
398
|
}
|