Skip to content

getClosestMatch error #6

@chrisscotweb

Description

@chrisscotweb

getClosestMatch doesn't work when providing an array of Color objects.

foreach($colors as $key => $color) {
if (false === ($color instanceof Color)) {
$c = new Color($color);
}
$dist = $this->getDistanceLabFrom($c);

should be

foreach($colors as $key => $color) {
if (false === ($color instanceof Color)) {
$color = new Color($color);
}
$dist = $this->getDistanceLabFrom($color);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions