Thursday, September 10, 2009

c code to create simple paint brush software.

#include#include#include#includevoid main(){int x,y,b,px,py,c,p,s,cl;int d=0,m;union REGS i,o;initgraph(&d,&m,"c:\tc");i.x.ax=1;int86(0x33,&i,&o);i.x.ax=8;i.x.cx=20;i.x.dx=450;int86(0x33,&i,&o);printf("Brush style insert number from 0 to 5 : ");scanf("%d",&p);printf("Brush size insert number from 1 to 7 : ");scanf("%d",&s);printf("Brush color insert number

No comments:

Post a Comment