mirror of
https://github.com/Tailszefox/Pony-Fusion.git
synced 2025-01-31 19:46:43 +01:00
For PHP>=5.4, use alpha component for colors
This commit is contained in:
parent
952931da54
commit
862f55961f
1 changed files with 2 additions and 2 deletions
|
@ -28,11 +28,11 @@ for($i = 0; $i < imagecolorstotal($from); $i++)
|
|||
|
||||
if($getFrom == $getTo)
|
||||
{
|
||||
imagecolorset($from, $i, 255 - $colorFrom["red"], 255 - $colorFrom["green"], 255 - $colorFrom["blue"]);
|
||||
imagecolorset($from, $i, 255 - $colorFrom["red"], 255 - $colorFrom["green"], 255 - $colorFrom["blue"], $colorFrom["alpha"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
imagecolorset($from, $i, $colorFrom["red"], $colorFrom["green"], $colorFrom["blue"]);
|
||||
imagecolorset($from, $i, $colorFrom["red"], $colorFrom["green"], $colorFrom["blue"], $colorFrom["alpha"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue