eds(x1,y1,x2,y2);
cursor_on();
kn=0;
break;
case 10:
cursor_off();
setfillstyle(1,4);
floodfill(75,200,15);
floodfill(84,204,15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x1=ms.hor_pos;
y1=ms.ver_pos;
break;
}
}
cursor_off();
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
a[i][j]=getpixel(x1-3+j,y1-3+i);
setcolor(8);
circle(x1,y1,3);
setfillstyle(1,14);
floodfill(x1,y1,8);
setcolor(15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x2=ms.hor_pos;
y2=ms.ver_pos;
break;
}
}
cursor_off();
setfillstyle(1,7);
floodfill(75,195,15);
floodfill(84,204,15);
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
putpixel(x1-3+j,y1-3+i,a[i][j]);
if(x1>108&&x1<630&&x2>108&&x2<630)
if(y1>50&&y1<435&&y2>50&&y2<435)
// вызов функции, рисующей электрич. лампу
lampochka(x1,y1,x2,y2);
cursor_on();
kn=0;
break;
case 11:
cursor_off();
setfillstyle(1,4);
floodfill(34,230,15);
floodfill(34,250,15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x1=ms.hor_pos;
y1=ms.ver_pos;
break;
}
}
cursor_off();
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
a[i][j]=getpixel(x1-3+j,y1-3+i);
setcolor(8);
circle(x1,y1,3);
setfillstyle(1,14);
floodfill(x1,y1,8);
setcolor(15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x2=ms.hor_pos;
y2=ms.ver_pos;
break;
}
}
cursor_off();
setfillstyle(1,7);
floodfill(34,230,15);
floodfill(34,250,15);
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
putpixel(x1-3+j,y1-3+i,a[i][j]);
if(x1>108&&x1<630&&x2>108&&x2<630)
if(y1>50&&y1<435&&y2>50&&y2<435)
// вызов функции, рисующей гальванометр
galvanometr(x1,y1,x2,y2);
cursor_on();
kn=0;
break;
case 12:
cursor_off();
setfillstyle(1,4);
floodfill(78,250,15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x1=ms.hor_pos;
y1=ms.ver_pos;
break;
}
}
cursor_off();
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
a[i][j]=getpixel(x1-3+j,y1-3+i);
setcolor(8);
circle(x1,y1,3);
setfillstyle(1,14);
floodfill(x1,y1,8);
setcolor(15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x2=ms.hor_pos;
y2=ms.ver_pos;
break;
}
}
cursor_off();
setfillstyle(1,7);
floodfill(78,250,15);
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
putpixel(x1-3+j,y1-3+i,a[i][j]);
if(x1>108&&x1<630&&x2>108&&x2<630)
if(y1>50&&y1<435&&y2>50&&y2<435)
// вызов функции, рисующей антену
antena(x1,y1,x2,y2);
cursor_on();
kn=0;
break;
case 13:
cursor_off();
setfillstyle(1,4);
floodfill(30,270,15);
floodfill(37,284,15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x1=ms.hor_pos;
y1=ms.ver_pos;
break;
}
}
cursor_off();
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
a[i][j]=getpixel(x1-3+j,y1-3+i);
setcolor(8);
circle(x1,y1,3);
setfillstyle(1,14);
floodfill(x1,y1,8);
setcolor(15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x2=ms.hor_pos;
y2=ms.ver_pos;
break;
}
}
cursor_off();
setfillstyle(1,7);
floodfill(30,270,15);
floodfill(37,284,15);
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
putpixel(x1-3+j,y1-3+i,a[i][j]);
if(x1>108&&x1<630&&x2>108&&x2<630)
if(y1>50&&y1<435&&y2>50&&y2<435)
// вызов функции, рисующей зажим
zazhim(x1,y1,x2,y2);
cursor_on();
kn=0;
break;
case 14:
cursor_off();
setfillstyle(1,4);
floodfill(70,270,15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x1=ms.hor_pos;
y1=ms.ver_pos;
break;
}
}
cursor_off();
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
a[i][j]=getpixel(x1-3+j,y1-3+i);
setcolor(8);
circle(x1,y1,3);
setfillstyle(1,14);
floodfill(x1,y1,8);
setcolor(15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x2=ms.hor_pos;
y2=ms.ver_pos;
break;
}
}
cursor_off();
setfillstyle(1,7);
floodfill(70,270,15);
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
putpixel(x1-3+j,y1-3+i,a[i][j]);
if(x1>108&&x1<630&&x2>108&&x2<630)
if(y1>50&&y1<435&&y2>50&&y2<435)
// вызов функции, рисующей ключ
kluch(x1,y1,x2,y2);
cursor_on();
kn=0;
break;
case 15:
cursor_off();
setfillstyle(1,4);
floodfill(20,315,15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x1=ms.hor_pos;
y1=ms.ver_pos;
break;
}
}
cursor_off();
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
a[i][j]=getpixel(x1-3+j,y1-3+i);
setcolor(8);
circle(x1,y1,3);
setfillstyle(1,14);
floodfill(x1,y1,8);
setcolor(15);
cursor_on();
while(1){
if((ms_release(&ms,0)==1)||(ms_release(&ms,1)==1)){
x2=ms.hor_pos;
y2=ms.ver_pos;
break;
}
}
cursor_off();
setfillstyle(1,7);
floodfill(20,315,15);
for(i=0;i<=6;i++)
for(j=0;j<=6;j++)
putpixel(x1-3+j,y1-3+i,a[i][j]);
if(x1>108&&x1<630&&x2>108&&x2<630)
if(y1>50&&y1<435&&y2>50&&y2<435)