SCALING IN RECTANGLE

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x=20,y=20,a=50,b=50;
initgraph(&gd,&gm,"c:\\tc\\bin");
while(!kbhit())
{
for(i=3;i<10;i+=2)
{
setcolor(i);
rectangle(x*i,y*i,a*i,b*i);
}
}
getch();
}

Comments

Popular posts from this blog

REFLECTION OF A TRIANGLE (COMPUTER GRAPHICS)