Graphics

2 Comments

C Program to create a house and perform the operations.

C Program to create a house like figure and perform the following operations.
a. Scaling about the origin followed by translation.
b. Scaling with reference to an arbitrary point.
c. Reflect about the line y = mx + c.

1 Comment

C program to implement Spiral Model

setcolor(YELLOW);
printf(“ENTER THE NUMBER OF RINGS IN THE SPIRAL MODEL\n”);
scanf(“%d”,&n);
printf(“Enter the origin point of the spiral”);
scanf(“%d%d”,&x,&y);

3 Comments

C Program to implement Kite flying

void main()
{
int gd=DETECT,gm;
int x=10,y=480;
initgraph(&gd,&gm,”..\\bgi”);
while(!kbhit())
{
cleardevice();
if(y==0)