- Last updated: 2025-01-23T13:39:11Z
- Generator: thi.ng/monopub
All notable changes to this project will be documented in this file. Only versions published since 2022-01-01 are listed here. Please consult the Git history for older version information. See Conventional Commits for commit guidelines.
Note: Unlisted patch versions only involve non-code or otherwise excluded changes and/or version bumps of transitive dependencies.
5.7.4 (2024-09-16)
- update pkg exports (f5f733f)
5.7.0 (2024-08-19)
- add setDefaultCSSConversions(), update css() (2d9e505)
- add setDefaultCSSConversions() to set default CSS color conversion rules
- update css() to use current configured default instead of CSS_LEVEL3
- add/update docs
5.6.47 (2024-06-29)
- update color ctor handling for single ARGB int args (8ab6083)
- interpret sole int arg as sRGB, not as linear RGB
- add tests
5.6.46 (2024-06-21)
- rename various rest args to be more semantically meaningful (8088a56)
- enforce uniform naming convention of internal functions (56992b2)
- dedupe types for isBlack/Gray/White() fns (a00705d)
- minor dedupe lab/lch CSS serialization (19df487)
5.6.42 (2024-04-20)
- update type usage (39494f2)
5.6.40 (2024-04-08)
- update reducer handling (5b445a7)
5.6.24 (2024-02-23)
- allow base color opt in colorFromRange() (4e7e7fe)
- fix/update readme code examples, tangle all (6eb48ac)
5.6.0 (2023-11-12)
- update temperatureMat() (eaacfa0)
- add (optional) 2nd green/magenta axis to existing blue/yellow
5.5.27 (2023-10-27)
- update vector imports (95f1d64)
5.5.19 (2023-09-19)
- update hiccup/SVG generators (37c532f)
5.5.5 (2023-07-14)
- update swatches() return type (ba73557)
5.5.0 (2023-04-19)
5.4.0 (2023-03-02)
- add oklch mode impl/support (3e77420)
- add oklch() factory & class decl
- add oklab<>oklch conversions
- update analog() & rotate()
- add CSS Level4 oklab/oklch support (137d322)
- update parseCss() to support oklab/oklch colors
- add oklab/oklch CSS serializers
- update css() to optionally support CSS Color Module L4
- add CSS_LEVEL3 / CSS_LEVEL4 conversions
- update color() to accept CSS color strings (0d5b3e9)
- update oklab LMS matrices (6e2cb75)
- according to @bottosson they were already updated in 01/2021
- update parseCss()/parseHex() (dbbdc7d)
- fix support for percentages
- fix channel scale factors
- fix alpha-channel handling in parseHex()
- rename internal helpers
- add/update tests
- refactor distLch() (fa2d4e0)
- use Law of Cosines impl to avoid 1x cos and 2x sin ops
- update oklab/oklch channel ranges, add docs (d87b30d)
- update (ok)lab/lch CSS serializers (8492f5e)
- extract internal helpers
- update/fix channel scale factors
5.3.0 (2023-02-10)
- fix invert() for HSL (84d0640)
5.2.0 (2022-09-21)
- add WCAG2 contrast() fn (a132107)
5.1.0 (2022-06-09)
- update multiColorGradient() (f47a59d)
- add support for automatic conversion to packed ARGB/ABGR ints (for use with indexed color models in @thi.ng/pixel)
5.0.0 (2022-03-11)
- rename color matrix fns (00fdc31)
- BREAKING CHANGE: rename color matrix fns
- add
Mat
suffix, e.g.grayscale()
=>grayscaleMat()
- add
- update ChannelSpec and hue-based modes (01d93dc)
- add
hue
flag for channel spec - update
.clamp()
impl to wrap hue in [0..1] interval - add/update LCH conversion paths
- add
- add/update color ops (33cb4a1)
- add
invert()
,isRgbGamut()
,lighten()
,rotate()
ops - add
tint()
,tone()
,shade()
ops - update impls for
isBlack/Gray/White()
- add/re-use internal multimethod dispatch fns
- add
- add max chroma LCH fns (ab4e67a)
- add variations() generator (91d760f)
- add color theme strategies (22057e5)
- add strategy fns:
complementaryStrategy()
splitComplementaryStrategy()
monochromeStrategy()
triadicStrategy()
tetradicStrategy()
squareStrategy()
- add strategy fns: