Как сделать люстру и поместить в нее эту лампочку в паскале?
uses Crt,graphABC;
procedure DrawLamp(state: Boolean);
begin
setfontsize(20);
if state = true then
begin
setbrushcolor(clblack);
setfontcolor(clwhite);
textout(200,450,'True');
end else
begin
setbrushcolor(clwhite);
setfontcolor(clblack);
textout(200,450,'False');
end;
end;
procedure Zokol;
var i: byte;
begin
for i:=1 to 10 do
begin
if odd(i) then setbrushcolor(clbrown)
else setbrushcolor(cldkgray);
ellipse(199,300+(i*10),301,300+(i*10)+20);
end;
setbrushcolor(clblack);
ellipse(230,410,270,430);
end;
procedure Dark;
begin
clearwindow(clblack);
Zokol;
setpencolor(clwhite);
arc(250,150,100,-60,240);
line(200,230,200,320);
line(300,230,300,320);
floodfill(250,250,clyellow);
setbrushcolor(clwhite);
circle(250,150,60);
end;
procedure Ligth;
begin
clearwindow(clwhite);
Zokol;
setpencolor(clblack);
arc(250,150,100,-60,240);
line(200,230,200,320);
line(300,230,300,320);
end;
var
lampState: Boolean;
key: Char;
begin
setwindowsize(500,500);
hidecursor;
lampState := False;
repeat
if lampState=true then Dark else Ligth;
DrawLamp(lampState);
key := readKey;
if key = 'h' then lampState := Not(lampState);
until key = #27;
end.