Paint program in c language

painting program in language

Paint program in c language   This program can draw different shapes using mouse such as line, circle, pixel and many other shapes. You can also change the color, clear the screen. #include<graphics.h> #include<dos.h> #include<math.h> #include<stdlib.h> #include<stdio.h> #include<conio.h> union REGS i, o; int leftcolor[15]; int get_key() { union REGS i,o; i.h.ah = 0; int86(22, &i, … Read more

C graphics programming

basic graphics program in c

C graphics programming     #include <graphics.h>   #include <conio.h>    int main()   {       int gd = DETECT, gm;      initgraph(&gd, &gm,”C:\\TC\\BGI”);      outtextxy(10, 20, “Graphics programming is fun!”);      circle(200, 200, 50);       setcolor(BLUE);       line(350, 250, 450, 50);       getch();       closegraph( );       return 0;   }