We have implemented animation of a windmill in computer graphics using
C programming language with the help of Turbo C software.
Technology Used:
Turbo C, it is an Integrated Development Environment (IDE) for
programming in C language. In Turbo C graphics, we use graphics.h functions to draw different various shapes (like circle, rectangle, etc.), display text in different format, fonts and colors. By using graphics.h we can make programs, animations, and games.
Functions used:
• Graphics Driver: It is a pointer to an integer specifying the graphics
driver to be used. It tells the compiler that what graphics driver to use or to automatically detect the drive. In all our programs we will use\DETECT\macro of graphics.h library that instruct compiler for auto detection of graphics driver.
• initgraph(&gdriver,&gmode,”C://tc//BGI”): This function is used for
initializing graphics mode. • setcolor(n): A function from graphics.h header file which sets the color of the pointer
Screenshots of the output:
Conclusion:
We have used Turbo C as our graphics software for implementing
mini-project for displaying windmill. Turbo C makes it easier to learn, explore and implement the concepts of computer graphics. By using the above-mentioned concepts and various functions that are explained, a windmill is implemented with animation using Turbo C. Hence, we have understood the basic idea of the project. Video of the Output: https://drive.google.com/file/d/ 1x2dS8nviK3HDDNeMF_6mTjIEU45ANrAy/view?usp=sharing