Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

A

Micro Project Report On


To Create a moving animation using computer graphics.
( Color changing Tree )
Submitted by
Sr. No. Roll No. Full Name of students Enrollment No. Seat No.
1 08 Pradnya K. Saysamindar 2111670132 328962
2 31 Rutuja J. Patil 2111670156
3 49 Darshan S. Dingar 2111670177 373137
4 53 Yash S. Phadol 2111670181 373141

Under the guidance of


Prof. B.S.Chaudhary

In the partial fulfillment of Third Semester of Diploma in


Computer Engineering

Department of Computer Engineering

Sandip Polytechnic
Mahiravani, Nashik-422213

Affiliate to

Maharashtra State
Board of Technical Education
Academic Year 2022-23
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

Certificate
This is to certify that Mr. /Ms. Pradnya K Saysamindar Roll No: 08 of THIRD SEMESTER of Diploma
Program in Computer Engineering at Sandip Foundation’s, Sandip Polytechnic, Nashik Institute Code:
1167 has completed the Micro Project satisfactorily in Course Computer Graphics (22318) for the academic
year 2022-2023 as prescribed in the MSBTE curriculum of ‘I Scheme’.

Place: Nashik Enrollment No.: 2111670132


Date: / / Exam Seat No.: 328962

Prof. B. S. Chaudhary Prof. G. K. Gaikwad Prof. P. M. Dharmadhikari


Course Teacher Head of the Department Principal

Seal

of

Institute
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

Certificate
This is to certify that Mr. /Ms. Rutuja J Patil Roll No: 31 of THIRD SEMESTER of Diploma Program in
Computer Engineering at Sandip Foundation’s, Sandip Polytechnic, Nashik Institute Code:
1167 has completed the Micro Project satisfactorily in Course Computer Graphics (22318) for the academic
year 2022-2023 as prescribed in the MSBTE curriculum of ‘I Scheme’.

Place: Nashik Enrollment No.: 2111670156


Date: / / Exam Seat No.:

Prof. B. S. Chaudhary Prof. G. K. Gaikwad Prof. P. M. Dharmadhikari


Course Teacher Head of the Department Principal

Seal

of

Institute
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

Certificate
This is to certify that Mr. /Ms. Darshan S Dingar Roll No: 49 of THIRD SEMESTER of Diploma Program in
Computer Engineering at Sandip Foundation’s, Sandip Polytechnic, Nashik Institute Code:
1167 has completed the Micro Project satisfactorily in Course Computer Graphics (22318) for the academic
year 2022-2023 as prescribed in the MSBTE curriculum of ‘I Scheme’.

Place: Nashik Enrollment No.: 2111670177


Date: / / Exam Seat No.: 373137

Prof. B. S. Chaudhary Prof. G. K. Gaikwad Prof. P. M. Dharmadhikari


Course Teacher Head of the Department Principal

Seal

of

Institute
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

Certificate
This is to certify that Mr. /Ms. Yash S Phadol Roll No: 53 of THIRD SEMESTER of Diploma Program in
Computer Engineering at Sandip Foundation’s, Sandip Polytechnic, Nashik Institute Code:
1167 has completed the Micro Project satisfactorily in Course Computer Graphics (22318) for the academic
year 2022-2023 as prescribed in the MSBTE curriculum of ‘I Scheme’.

Place: Nashik Enrollment No.: 2111670181


Date: / / Exam Seat No.: 373141

Prof. B. S. Chaudhary Prof. G. K. Gaikwad Prof. P. M. Dharmadhikari


Course Teacher Head of the Department Principal

Seal

of

Institute
INDEX
Sr.
Title Page No
No
1 Annexure –I

1.1 Brief Introduction

1.2 Aim of Micro Project

1.3 Action Plan

1.4 Resources Required

2 Annexure –II

2.1 Brief Introduction

2.2 Aim of Micro Project

2.3 Course Outcome Integrated

2.4 Actual Procedure Followed

2.5 Actual Resources Used

2.6 Outputs of the Micro Project

2.7 Skill Developed or Learning Out of this Project

3 Annexure –III

Evaluation as per suggested Rubric for Assessment of


3.1
Micro project.

3.2 Micro Project Evaluation Sheet


Annexure- I

PART A- Plan

Format for Micro-Project Proposal


To Create a moving animation using computer graphics.
( Color changing Tree )

1.1 Brief Introduction

• I Have created this micro-project or moving animation to understand the concept of computer
graphics . for this I’m used main Header File <graphics.h> as per computer graphics related
programs and conditions .

• What is graphics ?
2D graphics come in two flavors — raster and vector. Raster graphics are the most common and
are used for digital photos, Web graphics, icons, and other types of images.

• Animation means giving life to any object in computer graphics. It has the power of injecting
energy and emotions into the most seemingly inanimate objects. Computer-
assisted animation and computer-generated animation are two categories of computer
animation.

1.2 Aim of the Micro-Project

The Micro-Project aims at: -

• To Create a moving animation of N number of color changing tree with colorful changing fonts with
loading animation .
• Benefit Taken from this micro-project is that to understand the concept of making a animation using
different shapes .

1.3 Course Outcomes Achieved:

• Manipulate visual and geometric information of images.


• Implement standard algorithms to draw various graphics objects using C program.
• Develop programs for 2D and 3D transformation .
• Use projections to visualize objects on view plane .
• Implement various clipping algorithms .
• Develop programs to create curves using algorithms .
1.4 Proposed Methodology:

• First I have discussed for my micro-project required resources .

• Then I have collected required informations from many of websites , Books


and from internet about recursion concept in C Language .

• After this I have created my animation code of ( N Number Of Color


Changing Tree With Different Colorful Changing Fonts ) using grahics
releted functions in TURBO-C Compiler .

• Then I have tested my program code in TURBO C Compiler for checking my


program code giving me expected output or not ! .

• So if tested ok then program is fully functional , ready for use and


demonstration.

• After testing work of animation programs I have created a report to present


my animation program about how I used the graphics related concepts to make
aniamtion of C language .

• After completing this report we have submitted it to our guidance .


1.3 Action Plan

Sr. Planned Planned Name of Responsible


Details of Activity
No. Start Date Finish Date team member

1 Topic Discussion
2 Topic Selection
3 Collection of Data Pradnya K. Saysamindar
4 Analysis of Data
Rutuja J. Patil
5 Execution of Project
6 Discussion of Content Darshan S. Dingar

7 Outline of Content Yash S. Phadol


8 Formulation of Content
9 Editing And Proof Reading of Content
10 Compilation of Report
11 Compilation of Presentation
12 Presentation
13 Final Submission

1.4 Resources required


(Major resources such as raw material, some machining facility, software):-
Sr. No. Name of Resource/Material Specification Quantity Remark
Hardware Dell inspiron2123, core-i7processor - Hardware
1
Resource with windows 10 operating system. Resource
Software TURBO C++ COMPILER , GOOGLE - Software
1
Resource CHROME BROWSER . Resource
Any - Any Other
Other - - Resource
Resource
Name of Team Members with Roll No’s:

Roll No Enrollment Number Name of Team Members


08 2111670132 Pradnya K Saysamindar
31 2111670156 Rutuja J Patil
49 2111670177 Darshan S Dingar
53 2111670181 Yash S Phadol

Name & Signature of Course Teacher


(Prof. B. S. Chaudhary)
Annexure- II

PART B (Outcome after Execution)

Format for Micro Project Report


To Create a moving animation using computer graphics.
( Color changing Tree )

2.1 Brief Introduction

• I Have created this micro-project or moving animation to understand the concept of computer
graphics . for this I’m used main Header File <graphics.h> as per computer graphics related
programs and conditions .

• What is graphics ?
2D graphics come in two flavors — raster and vector. Raster graphics are the most common and
are used for digital photos, Web graphics, icons, and other types of images.

• Animation means giving life to any object in computer graphics. It has the power of injecting
energy and emotions into the most seemingly inanimate objects. Computer-
assisted animation and computer-generated animation are two categories of computer
animation.

2.2 Aim of Micro-Project

• To Create a moving animation of N number of color changing tree with colorful changing fonts with
loading animation .
• Benefit Taken from this micro-project is that to understand the concept of making a animation using
different shapes .

2.3 Course Outcomes Achieved

• Manipulate visual and geometric information of images.


• Implement standard algorithms to draw various graphics objects using C program.
• Develop programs for 2D and 3D transformation .
• Use projections to visualize objects on view plane .
• Implement various clipping algorithms .
• Develop programs to create curves using algorithms .
2.4 Literature Review:

• PIXEL :
A pixel (short for picture element) is a single point in a picture. On the monitor of a computer,
a pixel is usually a square. Every pixel has a color and all the pixels together are the picture.

• GRAPHICS :
What is graphics ?
Graphics are visual images or designs on some surface, such as a wall, canvas, screen, paper, or stone to
inform, illustrate, or entertain. In contemporary usage, it includes a pictorial representation of data, as in
computer-aided design and manufacture, in typesetting and the graphic arts, and in educational and
recreational software. Images that are generated by a computer are called computer graphics.

BELOW FIGURE SHOWS BASIC GRAPHICS PIPELINE :

Examples are photographs, drawings, line


art, graphs, diagrams, typography, numbers, symbols, geometric designs, maps, engineering drawings, or
other images. Graphics often combine text, illustration, and color. Graphic design may consist of the
deliberate selection, creation, or arrangement of typography alone, as in a brochure, flyer, poster, web
site, or book without any other element. Clarity or effective communication may be the objective,
association with other cultural elements may be sought, or merely, the creation of a distinctive style.
2.6 Actual Resources Used
(Mention the actual resources used)

Name of
Sr. No. Specification Quantity Remark
Resource/Material
Dell inspiron2123, core- -
Hardware
i7processor with windows 10 1 Hardware Resource
Resource
operating system.
Software TURBO C++ COMPILER , - Software Resource
Resource GOOGLE CHROME 1
BROWSER .
Any - Any Other
Other - - Resource
Resource
2.7 Output of the micro-project
(Output ,ppt)
2.8 Skill developed or learning out of this project.

• Graphics Animation Program writing skills is developed from this micro-project .


• Problem solving skills .
• Creativity .
• Critical thinking skills .

2.9 Application of this Micro-Project:

• Computer-generated imagery is used for movie making, video game and computer program
development, scientific modeling, and design for catalogs and other commercial art.
• Some people even make computer graphics as art. We can classify applications of computer
graphics into four main areas: Display of information.

Prof. B. S. Chaudhary

Name & Signature of Course Teacher


Annexure – III
Micro Project Evaluation Sheet
Name of Student: Pradnya K Saysamindar Enrollment No: 2111670132
Name of Programme: Computer Engineering Semester: III
Course Title: Computer Graphics Course Code: 22318
Tittle of microproject: To Create a moving animation using computer graphics.
( Color changing Tree )
Learning Outcomes Achieved:
• Manipulate visual and geometric information of images.
• Implement standard algorithms to draw various graphics objects using C program.
• Develop programs for 2D and 3D transformation .
• Use projections to visualize objects on view plane .
• Implement various clipping algorithms .
• Develop programs to create curves using algorithms .

Sr Poor Average Good Excellent Sub


No Characteristic to be Assessed Marks (1-3) Marks (4-5) Marks (6-8) Marks (9-10) Total
(A) Process and Product assessment (6 Marks)
1 Relevance to the Course
Literature Review
2
/Information Collection
Completion of the Target as
3
per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)

…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………

Name & Designation of Course Teacher: Prof. B. S. Chaudhary, Lecturer.

Dated Signature
Annexure – III
Micro Project Evaluation Sheet
Name of Student: Rutuja J Patil Enrollment No: 2111670156
Name of Programme: Computer Engineering Semester: III
Course Title: Computer Graphics Course Code: 22318
Tittle of microproject: To Create a moving animation using computer graphics.
( Color changing Tree )
Learning Outcomes Achieved:
• Manipulate visual and geometric information of images.
• Implement standard algorithms to draw various graphics objects using C program.
• Develop programs for 2D and 3D transformation .
• Use projections to visualize objects on view plane .
• Implement various clipping algorithms .
• Develop programs to create curves using algorithms .

Sr Poor Average Good Excellent Sub


No Characteristic to be Assessed Marks (1-3) Marks (4-5) Marks (6-8) Marks (9-10) Total
(A) Process and Product assessment (6 Marks)
1 Relevance to the Course
Literature Review
2
/Information Collection
Completion of the Target as
3
per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)

…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………

Name & Designation of Course Teacher: Prof. B. S. Chaudhary, Lecturer.

Dated Signature
Annexure – III
Micro Project Evaluation Sheet
Name of Student: Darshan S Dingar Enrollment No: 2111670177
Name of Programme: Computer Engineering Semester: III
Course Title: Computer Graphics Course Code: 22318
Tittle of microproject: To Create a moving animation using computer graphics.
( Color changing Tree )
Learning Outcomes Achieved:
• Manipulate visual and geometric information of images.
• Implement standard algorithms to draw various graphics objects using C program.
• Develop programs for 2D and 3D transformation .
• Use projections to visualize objects on view plane .
• Implement various clipping algorithms .
• Develop programs to create curves using algorithms .

Sr Poor Average Good Excellent Sub


No Characteristic to be Assessed Marks (1-3) Marks (4-5) Marks (6-8) Marks (9-10) Total
(A) Process and Product assessment (6 Marks)
1 Relevance to the Course
Literature Review
2
/Information Collection
Completion of the Target as
3
per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)

…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………

Name & Designation of Course Teacher: Prof. B. S. Chaudhary, Lecturer.

Dated Signature
Annexure – III
Micro Project Evaluation Sheet
Name of Student: Yash S Phadol Enrollment No: 2111670181
Name of Programme: Computer Engineering Semester: III
Course Title: Computer Graphics Course Code: 22318
Tittle of microproject: To Create a moving animation using computer graphics.
( Color changing Tree )
Learning Outcomes Achieved:
• Manipulate visual and geometric information of images.
• Implement standard algorithms to draw various graphics objects using C program.
• Develop programs for 2D and 3D transformation .
• Use projections to visualize objects on view plane .
• Implement various clipping algorithms .
• Develop programs to create curves using algorithms .

Sr Poor Average Good Excellent Sub


No Characteristic to be Assessed Marks (1-3) Marks (4-5) Marks (6-8) Marks (9-10) Total
(A) Process and Product assessment (6 Marks)
1 Relevance to the Course
Literature Review
2
/Information Collection
Completion of the Target as
3
per Project Proposal
4 Analysis of Data & Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva (4 Marks)
7 Presentation
8 Viva

(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)

Comments/Suggestions about Teamwork/Leadership/Inter-personal Communication (if any)

…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………
…………………………………………………………………………………………………..………………

Name & Designation of Course Teacher: Prof. B. S. Chaudhary, Lecturer.

Dated Signature
• Program code build in Turbo C Compiler for animation :

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
#include<dos.h>
void firstCrown()
{
setfillstyle(SOLID_FILL,GREEN);
line(300,40,200,100);
line(300,40,400,100);
ellipse(300,100,180,360,98,30);
floodfill(310,50,WHITE);
}
void secondCrown()
{
setfillstyle(SOLID_FILL,MAGENTA);
line(250,125,180,160);
line(350,125,420,160);
ellipse(300,160,180,360,120,30);
floodfill(260,130,WHITE);
}
void thirdCrown()
{
setfillstyle(SOLID_FILL,GREEN);
line(230,185,150,230);
line(360,185,440,230);
ellipse(295,230,180,360,145,30);
floodfill(250,190,WHITE);
}
void trunk()
{
setfillstyle(SOLID_FILL,BROWN);
line(280,260,280,350);
line(320,260,320,350);
line(280,350,320,350);
floodfill(285,340,WHITE);

}
void main()
{
int gd = DETECT , gm ;
initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
int i,n;
printf("W");delay(50);
printf("E");delay(50);
printf("L");delay(50);
printf("C");delay(50);
printf("O");delay(50);
printf("M");delay(50);
printf("E ");delay(50);

printf("T");delay(50);
printf("O ");delay(50);

printf("O");delay(50);
printf("U");delay(50);
printf("R ");delay(50);
printf("\n-------CMPUTER ");delay(500);
printf("DEPARTMENT--------\n ");delay(500);
printf("I");delay(50);
printf("N ");delay(50);
printf("T");delay(50);
printf("H");delay(50);
printf("I");delay(50);
printf("S ");delay(50);
printf("ANIMATION ");delay(500);
printf("I ");delay(500);
printf("AM ");delay(500);
printf("SHOWING ");delay(500);
printf("YOU ");delay(500);
printf("ABOUT ");delay(500);
printf("A ");delay(500);
printf("COLOR ");delay(500);
printf("CHANGING ");delay(500);
printf("TREE ");delay(500);
printf("\n SO ");delay(500);
printf("PLEASE ");delay(500);

printf("WATCH ");delay(500);
printf("THIS ");delay(500);
printf("CAREFULLY ");delay(500);
cleardevice();
printf("\nEnter Number of times you want to change the color of tree:");
scanf("%d",&n);

for(i=0;i<n;i++)
{
setcolor(WHITE);
for(i=35;i<555;i++)
{
line(25+i,170,25+i,200);
}
for(i=35;i<555;i++)
{
setcolor(GREEN);
line(25+i,170,25+i,200);
delay(10);

setcolor(WHITE);
settextstyle(SMALL_FONT,0,16);
outtextxy(220,220,"LOADING");
delay(10);

settextstyle(SMALL_FONT,HORIZ_DIR,16);
outtextxy(390,220,"...");
}closegraph();

initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
firstCrown();delay(200);
secondCrown();delay(200);
thirdCrown();delay(200);
trunk();delay(200);

settextstyle(GOTHIC_FONT, HORIZ_DIR, 2);


settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,440,"Govenrment Polytechnic College, Gondia");

setfillstyle(SOLID_FILL,RED);
line(300,40,200,100);

line(300,40,400,100);
ellipse(300,100,180,360,98,30);
floodfill(310,50,WHITE);

setcolor(RED);
settextstyle(TRIPLEX_FONT, HORIZ_DIR, 5);
settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,370,"CREATED BY");
delay(2000);
graphdefaults();
cleardevice();

firstCrown();delay(200);
secondCrown();delay(200);
thirdCrown();delay(200);
trunk();delay(200);

setfillstyle(SOLID_FILL,MAGENTA);
line(250,125,180,160);
line(350,125,420,160);
ellipse(300,160,180,360,120,30);
floodfill(260,130,WHITE);

settextstyle(TRIPLEX_FONT, HORIZ_DIR, 2);


settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,400,"COMPUTER ENGINEERING (CO-31)");

settextstyle(GOTHIC_FONT, HORIZ_DIR, 2);


settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,440,"Govenrment Polytechnic College, Gondia");

setcolor(MAGENTA);
settextstyle(BOLD_FONT, HORIZ_DIR, 2);
settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,370," VISHAL S KESHARWANI");
delay(2000);
graphdefaults();
cleardevice();

firstCrown();delay(200);
secondCrown();delay(200);

thirdCrown();delay(200);
trunk();delay(200);

setfillstyle(SOLID_FILL,BLUE);
line(230,185,150,230);
line(360,185,440,230);
ellipse(295,230,180,360,145,30);
floodfill(250,190,WHITE);

settextstyle(TRIPLEX_FONT, HORIZ_DIR, 2);


settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,400,"LECTURER , COMPUTER ENGINEERING DEPARTMENT");

settextstyle(GOTHIC_FONT, HORIZ_DIR, 2);


settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,440,"Govenrment Polytechnic College, Gondia");
setcolor(GREEN);
settextstyle(SANS_SERIF_FONT, HORIZ_DIR, 3);
settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,370,"UNDER GUIDANCE OF : KHIRADE SIR [KINGRAJ SIR]");
delay(2000);
graphdefaults();
cleardevice();

setcolor(GREEN);
settextstyle(BOLD_FONT, HORIZ_DIR, 3);
settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(360,200," END ");
delay(2000);
graphdefaults();
cleardevice();
}
getch();
closegraph();
}
• ALGORITHM OF ANIMATION PROGRAM CODE :

1] ALGORITHM : To create a moving animation using computer graphics .


INPUT : One number for color changing of tree .
OUTPUT : N Number Of Color Changing Tree With Different Colorful Changing Fonts .
Steps : 1. Initiate graphics by declaring gd=DETECT , gm and defining this variables by
initgraph (&gd , &gm, ”your computer turboc c address” ) ;

1. Read value of n .

2. FOR LOADING SCREEN :


Repeat steps 2 for(i=0;i<n;i++)
{
setcolor(WHITE);
repeat step for(i=35;i<555;i++)
{
line(25+i,170,25+i,200);
}
Repeat step for(i=35;i<555;i++)
{
setcolor(GREEN);
line(25+i,170,25+i,200);
delay(10);

a. For Displaying the colorful tree :


call the functions which is created outside the function :

firstCrown();delay(200);
secondCrown();delay(200);
thirdCrown();delay(200);
trunk();delay(200);

b. For displaying the tree with changed color

Call the same functions with changed color :


Usin the function of graphics setcolor(RED); which sets color to default color .
c. Using following functions set your default font and font style .
settextstyle(TRIPLEX_FONT, HORIZ_DIR, 2);
settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(300,400,"LECTURER , COMPUTER ENGINEERING DEPARTMENT");

d. Display the tree for given n no of times with changing color .


e. End .

2] Algorithm : void firstCrown()


OUTPUT : First Crown Of The Tree .
STEP 1 : Start .
STEP 2 : Set The Filling Style Of Crown Using Setfillstyle Function .
STEP 3 : Create The Object Borders Using Line Function And Ellipse Function .
STEP 4 : Using Flood Fill Algorithm Fill Color To The Crown .
STEP 5 : End.
{
setfillstyle(SOLID_FILL,GREEN);
line(300,40,200,100);
line(300,40,400,100);
ellipse(300,100,180,360,98,30);
floodfill(310,50,WHITE);
}
SAME ALGORITHM FOR ALL FUNCTION THAT HAS BEEN CREATED OUTSIDE THE
MAIN FUNCTION .

You might also like