| 1 |
# Changelog |
| 2 |
All notable changes to this project will be documented in this file. |
| 3 |
|
| 4 |
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 5 |
|
| 6 |
The format of this file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 7 |
but only releases after v1.0.3 properly adhere to it. |
| 8 |
|
| 9 |
## [Unreleased] |
| 10 |
|
| 11 |
## [1.4.0] - 2026-03-28 |
| 12 |
### Added |
| 13 |
- Constructors, decomposers, and blend functions for the CSS Color Level 4 wide-gamut RGB color spaces `DisplayP3`, `A98Rgb`, `ProPhotoRgb`, and `Rec2020` (#81) |
| 14 |
- `XyzD50`, `Color.XyzD50`, `D50ToD65`, and `D65ToD50` for working with D50-based color spaces (#81) |
| 15 |
- `HexColor` now implements `fmt.Stringer` |
| 16 |
|
| 17 |
## [1.3.0] - 2025-09-08 |
| 18 |
### Added |
| 19 |
- `BlendLinearRgb` (#50) |
| 20 |
- `DistanceRiemersma` (#52) |
| 21 |
- Introduce a function for sorting colors (#57) |
| 22 |
- YAML marshal/unmarshal support (#63) |
| 23 |
- Add support for OkLab and OkLch (#66) |
| 24 |
- Functions that use randomness now support specifying a custom source (#73) |
| 25 |
- Functions BlendOkLab and BlendOkLch (#70) |
| 26 |
|
| 27 |
## Changed |
| 28 |
- `Hex()` parsing is much faster (#78). However, it doesn't tolerate hex codes with alpha anymore (previously ignoring the alpha was unintentional). |
| 29 |
|
| 30 |
### Fixed |
| 31 |
- Fix bug when doing HSV/HCL blending between a gray color and non-gray color (#60) |
| 32 |
- Docs for HSV/HSL were updated to note that hue 360 is not allowed (#71) |
| 33 |
|
| 34 |
### Deprecated |
| 35 |
- `DistanceLinearRGB` is deprecated for the name `DistanceLinearRgb` which is more in-line with the rest of the library |
| 36 |
|
| 37 |
|
| 38 |
## [1.2.0] - 2021-01-27 |
| 39 |
This is the same as the v1.1.0 tag. |
| 40 |
|
| 41 |
### Added |
| 42 |
- HSLuv and HPLuv color spaces (#41, #51) |
| 43 |
- CIE LCh(uv) color space, called `LuvLCh` in code (#51) |
| 44 |
- JSON and envconfig serialization support for `HexColor` (#42) |
| 45 |
- `DistanceLinearRGB` (#53) |
| 46 |
|
| 47 |
### Fixed |
| 48 |
- RGB to/from XYZ conversion is more accurate (#51) |
| 49 |
- A bug in `XYZToLuvWhiteRef` that only applied to very small values was fixed (#51) |
| 50 |
- `BlendHCL` output is clamped so that it's not invalid (#46) |
| 51 |
- Properly documented `DistanceCIE76` (#40) |
| 52 |
- Some small godoc fixes |
| 53 |
|
| 54 |
|
| 55 |
## [1.0.3] - 2019-11-11 |
| 56 |
- Remove SQLMock dependency |
| 57 |
|
| 58 |
|
| 59 |
## [1.0.2] - 2019-04-07 |
| 60 |
- Fixes SQLMock dependency |
| 61 |
|
| 62 |
|
| 63 |
## [1.0.1] - 2019-03-24 |
| 64 |
- Adds support for Go Modules |
| 65 |
|
| 66 |
|
| 67 |
## [1.0.0] - 2018-05-26 |
| 68 |
- API Breaking change in `MakeColor`: instead of `panic`ing when alpha is zero, it now returns a secondary, boolean return value indicating success. See [the color.Color interface](#the-colorcolor-interface) section and [this FAQ entry](#q-why-would-makecolor-ever-fail) for details. |
| 69 |
|
| 70 |
|
| 71 |
## [0.9.0] - 2018-05-26 |
| 72 |
- Initial version number after having ignored versioning for a long time :) |