diff --git a/src/Canvas/ColorUtils.php b/src/Canvas/ColorUtils.php index 9e4b947..7709027 100644 --- a/src/Canvas/ColorUtils.php +++ b/src/Canvas/ColorUtils.php @@ -220,7 +220,7 @@ public static function over($fore, $back) ($forePA * (($fore >> 24) & 0xff) + $backPA * (($back >> 24) & 0xff)) / $pa); - $a = ($pa / 255); + $a = (int) ($pa / 255); return ($r << 24) | ($g << 16) | ($b << 8) | $a; }