Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "color-bits", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -47,3 +47,3 @@ <h1 align="center"> | ||
When parsing and converting non-sRGB color spaces, `color-bits` behaves the same as browsers behave, which differs from the formal CSS spec! In technical terms: non-sRGB color spaces with a wider gamut are converted using clipping rather than gamut-mapping. | ||
When parsing and converting non-sRGB color spaces, `color-bits` behaves the same as browsers do, which differs from the formal CSS spec! In technical terms: non-sRGB color spaces with a wider gamut are converted using clipping rather than gamut-mapping. | ||
@@ -56,4 +56,4 @@ For performance reasons, the representation is `int32`, not `uint32`. It is expected if you see negative numbers when you print the color value. | ||
[Documentation: `'color-bits'`](https://github.com/romgrk/color-bits/tree/master/docs/README.md) | ||
[Documentation: `'color-bits/string'`](https://github.com/romgrk/color-bits/tree/master/docs/string/README.md) | ||
[Docs for color-bits](https://github.com/romgrk/color-bits/tree/master/docs/README.md) | ||
[Docs for color-bits/string](https://github.com/romgrk/color-bits/tree/master/docs/string/README.md) | ||
@@ -66,7 +66,7 @@ If you're storing and manipulating colors frequently, you should use the `color-bits` exports directly, e.g. | ||
const background = Color.parse('#232323') | ||
const seeThrough = Color.alpha(backround, 0.5) | ||
const seeThrough = Color.alpha(background, 0.5) | ||
const output = Color.format(seeThrough) // #RRGGBBAA string | ||
``` | ||
The `color-bits/string` exports wrap some of the functions to accept string colors as input/output, which may be used if you're not storing the colors but just transforming them on the fly. | ||
The `color-bits/string` module wraps some of the functions to accept string colors as input/output, which may be useful if you're not storing the colors but just transforming them on the fly. It can be faster than calling the functions separately in some cases. | ||
@@ -76,4 +76,3 @@ ```tsx | ||
const background = '#232323' | ||
const output = Color.alpha(backround, 0.5) // #RRGGBBAA string | ||
const output = Color.alpha('#232323', 0.5) // #RRGGBBAA string | ||
``` | ||
@@ -85,3 +84,3 @@ | ||
Some parts of the codebase have been extracted from Chrome's devtools, MaterialUI, and stackoverflow, those contain a license notice or attribution in code comments, inline. | ||
Some parts of the codebase have been extracted from Chrome's devtools, MaterialUI, and stackoverflow, those contain a license notice or attribution in code comments, inline. Everything is MIT-compatible. | ||
@@ -88,0 +87,0 @@ <p align="center"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99015
85