> 24) & 0x7F; if ($alpha >= 125) { continue; } // A visible but translucent dark silhouette; preserve source antialiasing. $tint = min(127, 68 + (int) round($alpha * 0.46)); imagesetpixel($shadow, $x, $y, imagecolorallocatealpha($shadow, 9, 22, 19, $tint)); } } imagedestroy($sample); $texture = $sdl->createTextureFromGd($textureName, $shadow)[0]['texture']; imagedestroy($shadow); return $texture; } }