Building the Indian Flag with Python Graphics | Circle Theory & Geometry
In this project, I recreated the Indian flag using Python graphics while learning core computer graphics concepts. The project started with simple rectangles for the saffron, white, and green sections, but the most interesting part was building the Ashoka Chakra using circles, angles, symmetry, and spoke calculations. Required Links and Materials: Circle TextBook : https://ncert.nic.in/textbook/pdf/kemh110.pdf Circle Exemplar : https://www.ncert.nic.in/pdf/publication/exemplarproblem/classXI/mathematics/keep211.pdf Circle Tutorial By Aman Malik: https://www.youtube.com/watch?v=TZQHNIxtCxs&t=73s New Flag: https://codeinplace.stanford.edu/cip6/share/H0qFrFOGeSB3OL1opUZo Old Karel Flag: https://codeinplace.stanford.edu/cip6/share/qiyLeVUJGcI74Okmhphq 🇮🇩 Indonesian Flag : https://codeinplace.stanford.edu/cip6/share/pSoYPriAzKZojbYFWzgk Troll : https://codeinplace.stanford.edu/cip6/share/dEX5ERSr1Md2uT1XcXc7 In this video I explain: • Rectangle positioning • Coordinate systems • Circle theory • Angle calculations • Symmetry in graphics • Spoke generation • Graphics programming basics in Python This project helped me understand how geometry and programming work together in computer graphics. Tools Used: • Python • Graphics Library If you're learning Python or computer graphics, this is a great beginner project to understand geometry visually. Timeline / Chapters: 00:00:00 Intro & Final Preview 00:00:50 Learning Material 00:01:15 Writing from scratch 00:02:00 Setting Up the Canvas 00:06:00 Drawing a Rectangle 00:07:45 Drawing the Orange Rectangle 00:10:30 Drawing the White Rectangle 00:13:20 Drawing the Green Rectangle 00:15:00 Ashok Chakra: Circle 00:32:00 Ashok Chakra: Spokes 00:52:00 Comparing To Real Flag 00:56:00 Small Circle On Perimeter and Other Details 01:01:00 Final Result and Outro #Python #ComputerGraphics #PythonProject #Geometry #Programming
Download
0 formatsNo download links available.