Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
function &DrawCircularText_X2(&$imgObj, $textProps, $radius, $positionProps, $charSpan=10)
{
$text = $textProps['text'];
$textLen = strlen($text);
$start_angle = $charSpan*($textLen/2);
for ( $i=0; $i<$textLen; $i++ )
{
$a = ($charSpan*$i)-$start_angle;
$a += $positionProps['angleOffset'];
$cos = -cos(deg2rad($a));
$sin = -sin(deg2rad($a));
$x = 0;
$xt = round($cos*($x) - $sin*($radius));
$yt = round($sin*($x) + $cos*($radius));
imagettftext($imgObj, $textProps['fontSize'], 360-$a, $positionProps['offsetX']+$xt,
$positionProps['offsetY']+$yt, $textProps['color'], $textProps['font'], $text[$i]);
}
return $imgObj;
}