├── bresenham's circle program in c.C └── README.md /bresenham's circle program in c.C: -------------------------------------------------------------------------------- 1 | // Author : youtube channel-dotnetmob 2 | // Date : 23-May-2015 3 | // Description : program for drawing circle using 4 | //bresenham's mid point circle algorithm 5 | 6 | #include 7 | #include 8 | 9 | void circleplotpt(int x,int y,int x1,int y1) 10 | { 11 | //change 3rd parameter ie.15 to any other valid color number 12 | //like 2 for green 13 | putpixel(x+x1,y+y1,15); 14 | putpixel(x-x1,y+y1,15); 15 | putpixel(x+x1,y-y1,15); 16 | putpixel(x-x1,y-y1,15); 17 | putpixel(x+y1,y+x1,15); 18 | putpixel(x-y1,y+x1,15); 19 | putpixel(x+y1,y-x1,15); 20 | putpixel(x-y1,y-x1,15); 21 | } 22 | 23 | void circlemidpt(int x,int y,int r) 24 | { 25 | int x1=0,y1=r,p=1-r; 26 | circleplotpt(x,y,x1,y1); 27 | while(x1Demo for Bresenham's Circle Program in C 19 | 20 | 21 | | :bar_chart: | List of Tutorials | | :moneybag: | Support Us | 22 | |--------------------------:|:---------------------|---|---------------------:|:-------------------------------------| 23 | | Angular |http://bit.ly/2KQN9xF | |Paypal | https://goo.gl/bPcyXW | 24 | | Asp.Net Core |http://bit.ly/30fPDMg | |Amazon Affiliate | https://geni.us/JDzpE | 25 | | React |http://bit.ly/325temF | | 26 | | Python |http://bit.ly/2ws4utg | | :point_right: | Follow Us | 27 | | Node.js |https://goo.gl/viJcFs | |Website |http://www.codaffection.com | 28 | | Asp.Net MVC |https://goo.gl/gvjUJ7 | |YouTube |https://www.youtube.com/codaffection | 29 | | Flutter |https://bit.ly/3ggmmJz| |Facebook |https://www.facebook.com/codaffection | 30 | | Web API |https://goo.gl/itVayJ | |Twitter |https://twitter.com/CodAffection | 31 | | MEAN Stack |https://goo.gl/YJPPAH | | 32 | | C# Tutorial |https://goo.gl/s1zJxo | | 33 | | Asp.Net WebForm |https://goo.gl/GXC2aJ | | 34 | | C# WinForm |https://goo.gl/vHS9Hd | | 35 | | MS SQL |https://goo.gl/MLYS9e | | 36 | | Crystal Report |https://goo.gl/5Vou7t | | 37 | | CG Exercises in C Program |https://goo.gl/qEWJCs | | 38 | --------------------------------------------------------------------------------