Skip to content

v2.0.0

Compare
Choose a tag to compare
@makew0rld makew0rld released this 13 Feb 17:33
· 29 commits to master since this release

This release is mainly for some accuracy fixes, in linearization and rounding. Unfortunately it requires a breaking change, since uint16 is used for linear RGB values instead of uint8. This is the only breaking change. Please start using v2 over v1.

If you'd like to support the development of this library, as well as my other projects, you can sponsor me through Ko-Fi or Github Sponsors.

Changelog

Copied from CHANGELOG.md

Added

  • Added ErrorDiffusionStrength to set the strength of error diffusion dithering (#4)
  • RoundClamp function for making your own PixelMappers that round correctly

Changed

  • All linear RGB values are represented using uint16 instead of uint8 now, because 8-bits is not enough to accurately hold a linearized value. This is a breaking change, hence the new major version.

Fixed

  • Rounding is no longer biased, because ties are rounded to the nearest even number