v2.0.0
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 ownPixelMappers
that round correctly
Changed
- All linear RGB values are represented using
uint16
instead ofuint8
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