uses GraphABC;
var
x, y, radius: integer;
begin
Window.Title := 'Звездное небо';
FloodFill(0, 0, clBlack);
randomize;
for Radius := 1 to 5 do
for var n := 1 to 40 do
x := random(windowwidth);
y := random(windowheight);
SetPenColor(clRandom);
Circle(x, y, Radius);
end;
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
uses GraphABC;
var
x, y, radius: integer;
begin
Window.Title := 'Звездное небо';
FloodFill(0, 0, clBlack);
randomize;
for Radius := 1 to 5 do
begin
for var n := 1 to 40 do
begin
x := random(windowwidth);
y := random(windowheight);
SetPenColor(clRandom);
Circle(x, y, Radius);
end;
end;
end.