C graphics examples
1. Drawing concentric circles
#include <graphics.h> int main() { int gd = DETECT, gm; int x = 320, y = 240, radius; initgraph(&gd, &gm, "C:\\TC\\BGI"); for ( radius = 25; radius <= 125 ; radius = radius + 20) circle(x, y, radius); getch(); closegraph(); return 0; }
About Rishabh Aggarwal
Competitive Programmer and Ruby on Rails Developer
Snake Game using javascript (P5.js) Follow me at Instagram here. Subscribe to my youtube channel here. Just learnt somet...
No comments:
Post a Comment