Теперь я могу построить круг, но в моем цикле точки располагаются в случайном порядке и в конце я получаю круг.
Код: Выделить всё
theta = 0, x = 16, y = 6
theta = 1, x = 11, y = 14
theta = 2, x = 2, y = 15
theta = 3, x = -4, y = 7
theta = 4, x = -1, y = -2
theta = 5, x = 9, y = -4
Код: Выделить всё
$radius = 10;
$centerX = 6;
$centerY = 6;
$theta = 0;
$white = imagecolorallocate($im, 0, 255, 0);
while ($theta
Подробнее здесь: [url]https://stackoverflow.com/questions/78122168/how-can-you-draw-a-circle-point-by-point-moving-sequentially-along-the-circumfe[/url]