This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-20 21:52:24 +03:00

17 lines
435 B
ObjectPascal

uses GraphABC;
const
n = 17; // количество точек
n1 = 7; // через сколько точек соединять
begin
var a := -Pi/2;
var Center := Window.Center;
var Radius := Window.Height/2.2;
MoveTo(Round(Center.X+Radius*cos(a)),Round(Center.Y+Radius*sin(a)));
for var i:=1 to n do
begin
a += n1*2*Pi/n;
LineTo(Round(Center.X+Radius*cos(a)),Round(Center.Y+Radius*sin(a)));
end;
end.