You are on page 1of 10

Project Report Of Computer Graphics

TOPIC:-Screensaver on Beach scenario

Submitted by:Name:-HARPREET SINGH Roll no:-B44 Reg no:-10807828 Name:-JASKRIT SINGH Roll no:-B54 Reg no:-11108098 Name:-DIVYA BANSAL Roll no:-B53 Reg no:- 11105590

Acknowledgement
We HARPREET SINGH,JASKIRAT SINGH andDIVYA BANSAL take this opportunity to express our profound gratitude and deep regards to our guide (KALPNA MAM) for her exemplary guidance, monitoring and constant encouragement throughout the course of this project. The blessing, help and guidance given by her time to time shall carry us a long way in the journey of life on which we are about to embark.

INDEX 1. Introduction 2. Aim 3. Materials 4. Module (what we perform) 5. Code 6. Result

Introduction to Computer Graphics


Computer graphics is application oriented. The first application was Ivan Sutherland's Sketchpad which allowed user to draw on the screen. Though it may look trivial, it is a major breakthrough in the graphical field which proved to the world that computers could be used interactively to produce graphic output on a CRT display. Then came the paint systems which made the basic communication between human and computer more pictorial. Word processing, Desktop publishing, Business graphics (like analytical charts graphs and other displays of information which made the message forceful and emphatic), Computer-Aided design which allows speedy and easy design of buildings, mechanical systems, floor plans or electronic circuit boards, simulation of real world problems which provides a safe learning environment and major savings, gained public attention. Computer games which contributed considerably to the popularity of computer graphics, followed suite.

AIM :Our Topic is BEACH SCREEN-SAVER. Beach is the beautiful creation of nature. It is landform along the shoreline of sea. It usually consist of loose particle which often composed of rock such as sand gravel, pebbles and so on . The shadows from on the golden sand which stretches miles and miles down the beach. In this screen saver the sun rises screen seems very beautiful. Sand seems like a gold. So in the way the beach screen saver is seems very beautiful.

MATERIALS:Line Attributes type (solid, dashed, dotted), width, cap (butt, round, square), join (miter, round, etc.), color, grayscale, anti-aliasing. Other function like circle,setcolor,setbkcolor etc.

MODULE(WHAT I PERFORM):Interface of project is done by me & all modifications like line coordinaters , outlining of boat etc. I set the line coordinaters like :- line(201,401,639,401);

line(204,404,637,404); line(207,407,635,407);

CODE:#include<conio.h> #include <stdio.h> #include <dos.h> #include<graphics.h>

void main() { int l,n,i,j,k,m,gm=0; int gd=DETECT; initgraph(&gm,&gd,"C:\\TurboC3\\BGI"); setbkcolor(BLACK); for(j=200;j>=0;j--) { setcolor(CYAN); line(0,j,639,j); delay(20);

} for(i= 200; i<= 479;i++) { setcolor(BROWN); line(0,i,639,i); delay(20); } setcolor(RED); for(m=400;m<=460;m++) { line(240,m,630,m); } for(m=200;m<=240;m++) { line(240,460,m,400); } for(m=640;m>=630;m--) { line(630,460,m,400); } for(m=5;m>=0;m--)

{ setcolor(WHITE); circle(565,455,m); circle(575,455,m); circle(585,455,m); circle(595,455,m);

} outtextxy(550,440,"SEA STAR"); setcolor(BLACK); line(201,401,639,401); line(204,404,637,404); line(207,407,635,407); for(k=400;k>=200;k--) { setlinestyle(1,0,2); setcolor(BLUE); line(0,k,639,200); delay(20); } for(n=0;n<=20;n++)

{ setcolor(WHITE); circle(40,5,n); circle(20,15,n); circle(35,25,n); circle(60,15,n); circle(70,5,n); circle(50,15,n); circle(65,25,n); circle(90,15,n); circle(140,5,n); circle(120,15,n); circle(135,25,n); circle(160,15,n); circle(440,5,n); circle(420,15,n); circle(435,25,n); circle(460,15,n); circle(540,5,n); circle(520,15,n); circle(535,25,n);

circle(560,15,n); } for(n=0;n<=20;n++) { setcolor(RED); circle(319,50,n); } for(k=20;k>=0;k--) { setcolor(YELLOW); circle(319,50,k); delay(500); }0 exit(0); }

RESULT:-

You might also like