List Of Practicals.docx List Of Practicals.docx
Size : 92.992 Kb
Type : docx
Theory.docx Theory.docx
Size : 26.416 Kb
Type : docx
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  Bouncing Ball 

                                     
1. cleardevice()  : clear device erases the entire graphics screen

2. kbhit() : kbhit function is used to determine if a key has been pressed or not If a key has been pressed then it returns a non zero value otherwise returns zero.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   

   Scan Line Polygon Filling  Algorithm


   Step1: Take points of polygon as input from user and store them in 2d array 
   Step2: Draw Polygon
   Step3: Calculate 1/slope and put it to the 1d  array 
   Step4:  For  each scan line 

1. Find its  intersection with the edges and store it in 1d array
2.Arrange the intersecting points in increasing order 
3.Draw line b/w intersection points




 

Make a free website with Yola