https://github.com/thinkphp/graphics.h
I created this repository to demonstrate the power of graphics.h turbo C
https://github.com/thinkphp/graphics.h
Last synced: 3 months ago
JSON representation
I created this repository to demonstrate the power of graphics.h turbo C
- Host: GitHub
- URL: https://github.com/thinkphp/graphics.h
- Owner: thinkphp
- Created: 2013-02-14T20:58:13.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-05-10T15:58:52.000Z (over 2 years ago)
- Last Synced: 2024-04-14T14:54:26.305Z (almost 2 years ago)
- Language: C++
- Size: 41 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Graphics.h
----------
Using functions of graphics.h in C compiler you can make graphics programs, animations, projects and games. You can
draw circles, lines, rectangles, bars and many other geometrical figures.
##Example
//drawing concentric circles
#include
int main() {
int gd = DETECT, gm;
int x = 320, y = 240, radius;
initgraph(&gd, &gm, "C:\\TC\\BGI");
for ( radius = 10; radius <= 150 ; radius = radius + 20)
circle(x, y, radius);
getch();
closegraph();
return 0;
}