Skip to content

Allow user settable weights for CIEDE2000

Compare
Choose a tag to compare
@TorbenKoehn TorbenKoehn released this 12 Nov 15:14
· 2 commits to master since this release

This adds a third parameter to Color::getDifference(ColorInterface $color, ColorInterface $compareColor, array $weights) to specify custom weights to use when comparing colors. The parameter needs to be a tuple of 3 floats with [1, 1, 1] being the default.

Thank you @chamby