This project visualizes and animates the rupee symbol using the line() and arc() functions in C programming language. It showcases the creation of intricate shapes and dynamic movements through code.
Note: To view the code in the GitHub repository with proper formatting, make sure to change the tab size from the default 8 to 4. You can adjust this setting in
GitHub > Settings > Appearance > Tab Size Preference
.
This C program was compiled using the GNU Compiler (GCC) and executed in the Linux terminal. Follow the steps below to run the program:
- Install dependencies
How to install graphics.h on ubuntu 18.04...
Note: The mentioned packages are not specifically required for this individual project. It is just to recommend installing the important packages for running basic graphics programs.
Use a text editor to write a C program
Open the C program file runtheprogram.c
in your preferred text editor, for example, using:
gedit runtheprogram.c
Check the C program
cat runtheprogram.c
Compile the C program
Note: This command will invoke the GNU Compiler (GCC) to compile the file
runtheprogram.c
and output (-o) the result to an executable namedexperiment
.
gcc runtheprogram.c -o experiment -lgraph
Run the C Program (Machine Code)
./experiment
Take a look at the runtheprogram.c
file below. It's used as a simple example to demonstrate how to run a C program in Linux using GCC.
Please refer to the LICENSE file for information on the license terms and any associated rights and limitations (MIT).