Skip to content

Releases

v1.4.1

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 02 Aug 09:06

What's Changed

  • fix: correct D50ToD65 to the CSS Color 4 matrix that inverts D65ToD50 by @gaoflow in #85

New Contributors

  • @gaoflow made their first contribution in #85

Full Changelog: v1.4.0...v1.4.1

v1.4.0

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 28 Mar 13:18

This release adds support for CSS Color Level 4 wide-gamut RGB color spaces, along with D50 XYZ helpers and a small HexColor usability improvement.

Added

  • Constructors, decomposers, and blend functions for the CSS Color Level 4 wide-gamut RGB color spaces DisplayP3, A98Rgb, ProPhotoRgb, and Rec2020 (#81)
  • XyzD50, Color.XyzD50, D50ToD65, and D65ToD50 for working with D50-based color spaces (#81)
  • HexColor now implements fmt.Stringer

v1.3.0

Choose a tag to compare

@makew0rld makew0rld released this 08 Sep 14:18
680f825

If you'd like to support go-colorful's development you can support me or Lucas (the original developer) through GitHub Sponsors, check out the Sponsor button up top. I also have a Ko-Fi for one-time donations.

The rest of this message is copied from the CHANGELOG.md file in this repo.

Added

  • BlendLinearRgb (#50)
  • DistanceRiemersma (#52)
  • Introduce a function for sorting colors (#57)
  • YAML marshal/unmarshal support (#63)
  • Add support for OkLab and OkLch (#66)
  • Functions that use randomness now support specifying a custom source (#73)
  • Functions BlendOkLab and BlendOkLch (#70)

Changed

  • Hex() parsing is much faster (#78). However, it doesn't tolerate hex codes with alpha anymore (previously ignoring the alpha was unintentional).

Fixed

  • Fix bug when doing HSV/HCL blending between a gray color and non-gray color (#60)
  • Docs for HSV/HSL were updated to note that hue 360 is not allowed (#71)

Deprecated

  • DistanceLinearRGB is deprecated for the name DistanceLinearRgb which is more in-line with the rest of the library

v1.2.0

Choose a tag to compare

@makew0rld makew0rld released this 28 Jan 03:29
Please note the v1.1.0 and v1.2.0 tags have the same code, this new update. The next release of this library will be v1.2.1 or v1.3.0, not anything else.

Hello! I'm the new maintainer of go-colorful. This is the first release its had in a while, adding some new color spaces and fixing some small bugs. Rest assured it's in good hands, and I hope to support all your wonderful work with it for long time.

If you'd like to support go-colorful's development you can support me or Lucas (the original developer) through GitHub Sponsors, check out the Sponsor button up top. I also have a Ko-Fi for one-time donations.

The rest of this message is copied from the CHANGELOG.md file in this repo.

Added

  • HSLuv and HPLuv color spaces (#41, #51)
  • CIE LCh(uv) color space, called LuvLCh in code (#51)
  • JSON and envconfig serialization support for HexColor (#42)
  • DistanceLinearRGB (#53)

Fixed

  • RGB to/from XYZ conversion is more accurate (#51)
  • A bug in XYZToLuvWhiteRef that only applied to very small values was fixed (#51)
  • BlendHCL output is clamped so that it's not invalid (#46)
  • Properly documented DistanceCIE76 (#40)
  • Some small godoc fixes

Remove SQLMock dependency

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 11 Nov 15:15
fadcb7c

Thanks to @benhoyt and @diamondburned

Fixes sqlmock dependency

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 07 Apr 11:03
30298f2

Thanks to @emersion for bringing up the issue and fixing it in #34

Adds support for Go Modules.

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 24 Mar 19:00
b3ff143

Thanks to @SamWhited for taking care of this in #32!

go-colorful v1.0

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 26 May 13:58
345fbb3

This could be it? 😸

  • API Breaking change in MakeColor: instead of panicing when alpha is zero, it now returns a secondary, boolean return value indicating success. See the color.Color interface section and this FAQ entry for details.

go-colorful v0.9

Choose a tag to compare

@lucasb-eyer lucasb-eyer released this 26 May 13:53
d4cf663
  • Initial version number after having ignored versioning for a long time :)