/* anime-pencere v1.0 Acilan animasyonlu pencere ornegi. Copyright (C) 2005 Engin KUZU This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ //http://www.gnu.org/copyleft/gpl.html //Turkce cevirisi: http://www.belgeler.org/howto/gpl_copy.html //Web: http://www.enginkuzu.org #include #include void yaz(int x,int y,char c) { gotoxy(x,y);textcolor(2);cprintf("%c",c); } void pencere(int a,int b,int c,int d,int e,int f) { int k1,k2,k3,k4,i,j; char c1,c2,c3,c4,c5,c6; _setcursortype(_NOCURSOR); switch(e) { case 1: c1=218;c2=191;c3=192;c4=217;c5=196;c6=179; break; case 2: c1=201;c2=187;c3=200;c4=188;c5=205;c6=186; break; case 3: c1=219;c2=219;c3=219;c4=219;c5=219;c6=219; break; } if( (b-a)%2 == 1) { k1=(b-a)/2+a; k2=k1+1; } else { k1=(b-a)/2+a-1; k2=k1+2; } if( (d-c)%2 == 1) { k3=(d-c)/2+c; k4=k3+1; } else { k3=(d-c)/2+c-1; k4=k3+2; } while( a!=k1 || c!=k3 ) { if( a==k1 && c==k3 ) break; if( a==k1 ) { k3--;k4++; } else if(c==k3) { k1--;k2++; } else { k1--;k3--;k2++;k4++; } yaz(k1,k3,c1); for(i=k1+1;i