CGR TTTT
CGR TTTT
CGR TTTT
INDEX
SR NO CONTENTS PAGE NO
1 Rationale 4
2 Aim of micro-project 4
7 Source Code 5
8 Output 7
9 Skills developed 8
10 Conclusion 8
Annexure – I
Micro-Project Proposal
Samarth Deshmukh
2 Design the structure of the project. 22/8/2023 23/ 8/2023
3 Develop a program using ‘C’ Pranav Narkhede
29/8/2023 31/ 8/2023
4 Debug code and eliminate
errors occurred while 12/9/2023 14/ 9/2023 Samarth Deshmukh
compilation.
Pranav Narkhede
5 Test the project. 26/9/2023 28/9/2023
3 Software’s DevC++
Annexure - II
Micro-Project Report
2.0 Rationale:
This course provides an introduction to the principles of computer graphics. In
particular, the course will consider methods for object design, transformation, scan
conversion, visualization and modeling of real world. The emphasis of the course
will be placed on understanding how the various elements that underlie computer
graphics (algebra, geometry, algorithms) interact in the design of graphics software
systems.
3 Software’s DevC++
Graphics function in c:
#include<conio.h>
#include<graphics.h>
#include<math.h>
#include<dos.h>
#define WBC 5
//watchbackcolor
#define X 200
#define Y 200
void minhand(int t)
{
int x1,y1;
setlinestyle(0,0,3);
setcolor(BLACK);
line( X, Y, x1, y1);
setcolor(WBC+1);
line( X, Y, X+ 80 * cos((t-1)*0.1047),Y+ 80 * sin((t-1)*0.1047));
circle(X,Y,4);
}
void sechand(int t)
{
int x1,y1
setlinestyle(0,0,3);
setcolor(WBC+1);
line(X, Y, X+ 100 * cos((t-1)*0.1047),Y+ 100 * sin((t-1)*0.1047));
circle(X,Y,4);
}
setfillstyle(1,WBC); fillellipse(x,y,size,size);
setfillstyle(1,WBC+1); fillellipse(x,y,size-20,size-20);
outtextxy(x,y-(size-40),"12");
outtextxy(x,y+(size-40),"6");
outtextxy(x+(size-40),y,"3");
outtextxy(x-(size-40),y,"9"); outtextxy(x+size/3,y-2*size/3,"1"); outtextxy(x+2*size/3,y-size/3,"2");
outtextxy(x+2*size/3,y+size/3,"4"); outtextxy(x+size/3,y+2*size/3,"5"); outtextxy(x-size/3,y+2*size/3,"7");
outtextxy(x-2*size/3,y+size/3,"8"); outtextxy(x-size/3,y-2*size/3,"11"); outtextxy(x-2*size/3,y-size/3,"10");
circle(x,y,4);
void main()
{
int gd=DETECT, gm,i,j, flag=1; initgraph(&gd,&gm,"C:\\turboc3\\bgi");
8. Output:
10.0 Conclusion: