Drawing Graphics by using C Programing Language
This is a C Language Program to show the drawing and filling of some basic shapes like rectangle, circle etc. with colors and different shades by using Turbo C graphics.h and modern SDL libraries.
This is a C Language Program to show the drawing and filling of some basic shapes like rectangle, circle etc. with colors and different shades by using Turbo C graphics.h and modern SDL libraries.
This is a C implementation of basic and few advance scientific features of calculator. It shows a nice graphical UI of the calculator with 3D buttons and demonstrates click button animation functionality. The functionalities of the calculator includes: Basic Mathematics (Add, Subtract, Multiply and Divide), Advance Mathematics (Square root, Square, Cube), Logarithmic Functions (Log, Natural Log (ln), e, Exponential), Number Conversions (Binary, Decimal, Hexadecimal and Octal), Trigonometric Functions (Sine, Cosine, Tangent, Cotangent, Secant and Cosecant), Angle Measurement (Degree, Radia and Gradian), Other Functions (Memory, Pi and Inv).
In the previous two posts (Graphics Library Reference part 1 and part 2) I have discussed few important functions of graphics.h library in C Programming. As promised here is the sample C language program which will demonstrate the use of graphics functions using C language and draw some geometrical shapes on the console. If you have followed the previous two posts the you will not find the source code difficult to compile and execute. If you still experience any problems using the source code or compiling the code the please do let me know, and I will try to figure it out.
In the previous post I discussed few important functions mostly used to initialize and destroy the graphics mode in DOS environment. Today I will discuss graphics functions to draw different shapes and lines. So here we go by starting the line function which is most important function in creating any graphics.