HOW TO DRAW CIRCLE AND COLOR IT IN C++ (COMPUTER GRAPHICS)

July 29, 2019 posted by



Open Turbo C and create new file with .cpp extension Import all required packages Now declare gd and gm variables. And specify the path(Where graphics related files are stored) circle(x,y,r); x & y are used to decide position of the circle and R is Radius Use setfillstyle() method and set the color of the circle eg. green Now use floodfill() method and declare x & y co-ordinates. These two co-ordinates must be inside of the circle. And specify boundry color of the circle i.e. white.

25 Comments

25 Replies to “HOW TO DRAW CIRCLE AND COLOR IT IN C++ (COMPUTER GRAPHICS)”

  1. Ritik says:

    why does it always have to be white in floodfill?

  2. Usama Iftikhar Butt says:

    can you help me in how to add graphics in visual studio 2013

  3. Usama Iftikhar Butt says:

    nice

  4. Usama Iftikhar Butt says:

    can u help me that how to add graphics in visual studio c++

  5. Usama Iftikhar Butt says:

    thank u

  6. Nishant Mishra says:

    Why does your circle come and go?…..its not blinking….but it comes late and goes before the console closes.

  7. Gauri anvikar says:

    bro finals ka project ho gaya

  8. Saimun Ahmed says:

    277 no. sub done.. please sub me back

  9. Md Asif Alam says:

    initgraph (&gd,&gm,…………
    I"m not understanding sit so please tell me Sir my program not running..so tell me this discription sir

  10. proz Al says:

    what is the name of compiler or editor

  11. Roya Hedayat says:

    how to give the circle a specific position?

  12. Prince Narula says:

    Good job

  13. Rohit Mangutkar says:

    Nice bro..

  14. Albert lee says:

    Nice tutorial

  15. Vijay Nagar says:

    Thank you

  16. Sujay Pote says:

    I like it..

  17. Ramdas Vaibhav says:

    Cool..

  18. TechnoPanti says:

    Watch this video "Scenery in C++". It will clear your all doubts about How to draw,color various objects in computer graphics. Hope you will like this video.
    https://youtu.be/kYZQA6wkiIY

  19. Deepika Verma says:

    sir my output page not stay for this program….

    plz help

  20. Deepika Verma says:

    sir i have write the getch(); command but my output screen for this program not stay….why???

  21. Anil Prajapati says:

    sir please make a fidget spinner using c or c++

  22. Harley Travis says:

    What was the program you were you using to make the code?

  23. stephen says:

    wats the function of c:/tc/bg i or c:\TC\BG I ?

  24. Nimra Afzal says:

    great

Leave a Comment

Your email address will not be published. Required fields are marked *