mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 01:29:51 +02:00
Merge pull request #1172 from MathiasReker/0-logical-operators
Logical operators
This commit is contained in:
@@ -201,9 +201,9 @@ class Color extends AbstractColor
|
||||
];
|
||||
|
||||
return (
|
||||
$delta['r'] > $color_tolerance or
|
||||
$delta['g'] > $color_tolerance or
|
||||
$delta['b'] > $color_tolerance or
|
||||
$delta['r'] > $color_tolerance ||
|
||||
$delta['g'] > $color_tolerance ||
|
||||
$delta['b'] > $color_tolerance ||
|
||||
$delta['a'] > $alpha_tolerance
|
||||
);
|
||||
}
|
||||
|
@@ -193,9 +193,9 @@ class Color extends AbstractColor
|
||||
];
|
||||
|
||||
return (
|
||||
$delta['r'] > $color_tolerance or
|
||||
$delta['g'] > $color_tolerance or
|
||||
$delta['b'] > $color_tolerance or
|
||||
$delta['r'] > $color_tolerance ||
|
||||
$delta['g'] > $color_tolerance ||
|
||||
$delta['b'] > $color_tolerance ||
|
||||
$delta['a'] > $alpha_tolerance
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user