Cgrmicroproject
Cgrmicroproject
Action plan
Sr.n Details of Planned Planned Name of responsible Sign of
o activity start date finish term member guide
date
Resources used:-
Sr
Name of Resource/ Material Specification QTY Remark
No
textbook OOP 1
1)
internet Wikipedia
2)
PC windows 11 1
3)
Introduction
Used function in program :-
Putpixel
Purpose:-Putpixel function is to draw the pixel on the screen. Pixel is
small dot on the screen.
Syntax:-putpixel(x co-orinate, y co-ordinate,COLOR);
Example: – putpixel(100,100,BLUE);
SetbkColor
Purpose:-Setbkcolor function is used to set background color of the
screen.
Syntax:-setbkcolor(COLOR);
Example:-setbkcolor(RED);
Setlinestyle
Purpose:-setlinestyle function is used to set the current line style,
width and pattern
Syntax:-setlinestyle(linestyle, pattern, thickness);
Example:-setlinestyle(SOLID_LINE,1,2);
Setcolor
Purpose:-setcolor is to set color of the objects which is to be drawn
after this setcolor line.
Syntax:-setcolor(COLOR);
Example:-setcolor(RED);
Rectange:-
Purpose:- Rectangle function is used to draw the rectangle on the
screen. X1,y1 are the lower left co-ordinates of the rectangle and the
x2,y2 are the upper right co-ordinates of the rectangle.
Syntax:– rectangle(x1,,y1,x2,y2);
Example:– rectangle(100,100,200,200);
Arc
Purpose:arc draws the arc on the screen, arc is a part of the circle
Syntax:arc(x, y, starting angle, ending angle, radius);
Example:arc( 100,100,90,180,50);
Line
Purpose:-Line function is used to draw the line on the screen.
Syntax: line(x1,y1,x2,y2);
Example:-line(100,100,200,100);
Ellipse
Purpose:ellipse function is used to draw the ellipse on the screen.
Syntax:ellipse(x, y, starting angle, ending angle, xradius, yradius);
Example:ellipse(100,100,90,200,20,20);
Closegraph
Purpose:-closegraph function shut down the graphic system
Syntax:-closegraph();
Example:-closegraph();