<?php
/**
* Created by PhpStorm.
* Date: 26.03.15
* Time: 15:01
*/
$phrase = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ";
$phraseLength = mb_strlen($phrase); // Количество букв
$fromAngle = -80;
$toAngle = 260;
$radius = 12.5;
$height = 30;
$centerX = 40;
$centerY = 15;
for($y = 0; $y < $height; $y++){
}
$angelString = $toAngle - $fromAngle; // Общий угол для всей строки
$distance = $angelString/$phraseLength; // Угол между буквами
$angelChar = round($distance); // Угол первой буквы
for($i = 0; $i < $phraseLength; $i++) {
$x = $centerX + round($radius * sin(deg2rad($angelChar))*2.1); // Координата X с подобранной погрешнастью $angelChar += $distance; // Переход к углу следующей букве
$char = mb_substr($phrase,$i,1); // Получаем букву $screen[$y][$x]=$char; // Записываем букву в координаты X и Y
}
echo implode("",$string)."\n"; // Выводим буквы }
PD9waHAKLyoqCiAqIENyZWF0ZWQgYnkgUGhwU3Rvcm0uCiAqIERhdGU6IDI2LjAzLjE1CiAqIFRpbWU6IDE1OjAxCiAqLwoKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokcGhyYXNlID0gItCQ0JHQktCT0JTQldCB0JbQl9CY0JnQmtCb0JzQndCe0J/QoNCh0KLQo9Ck0KXQptCn0KjQqdCq0KvQrNCt0K7QryI7CiRwaHJhc2VMZW5ndGggPSBtYl9zdHJsZW4oJHBocmFzZSk7ICAgICAgICAgICAgICAgLy8g0JrQvtC70LjRh9C10YHRgtCy0L4g0LHRg9C60LIKCiRmcm9tQW5nbGUgPSAtODA7CiR0b0FuZ2xlID0gMjYwOwokcmFkaXVzID0gMTIuNTsKCiRoZWlnaHQgPSAzMDsKJGNlbnRlclggPSA0MDsKJGNlbnRlclkgPSAxNTsKCiRzY3JlZW4gPSBhcnJheSgpOwpmb3IoJHkgPSAwOyAkeSA8ICRoZWlnaHQ7ICR5KyspewogICAgJHNjcmVlbl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