case 75: /* */

if(on_flag) line(x, y, x, y-inc, cc);

y -= inc;

break;

case 77: /* */

if(on_flag) line(x, y, x, y+inc, cc);

y += inc;

break;

case 72: /* */

if(on_flag) line(x, y, x-inc, y, cc);

x -= inc;

break;

case 80: /* */

if(on_flag) line(x, y, x+inc, y, cc);

x += inc;

break;

case 71: /* */

if(on_flag) line(x, y, x-inc, y-inc, cc);

x -= inc;

y -= inc;

break;

case 73: /* */

if(on_flag) line(x, y, x-inc, y+inc, cc);

x -= inc;

y += inc;

break;

case 79: /* */

if(on_flag) line(x, y, x+inc, y-inc, cc);

x += inc;

y -= inc;

break;

case 81: /* */

if(on_flag) line(x, y, x+inc, y+inc, cc);

x += inc;

y += inc;

break;

case 59: /* F1 - */

inc=1;

break;

case 60: /* F2 -  */

inc=5;

break;

else switch(tolower(key.c[0]))

case 'o': /* */

on_flag = !on_flag;

break;

case '1': cc=1; /* 1 */

break;

case '2': cc=2; /* 2 */

break;

case '3': cc=3; /* 3 */

break;

case '0': cc=0; /* 0 */

break;

case 'b':

box(startx, starty, endx, endy, cc); break;

case 'f':

fill_box(startx, starty, endx, endy, cc); break;

case 'l':

line(startx, starty, endx, endy, cc); break;

case 'c':

circle(startx, starty, endy-starty, cc); break;

case 'h':

fill_circle(startx, starty, endy-starty, cc); break; case 's':

save_pic(); break;

case 'r':

load_pic(); break;

case 'm': /* */

move(startx, starty, endx, endy, x, y); break;

case 'x': /* */

copy(startx, starty, endx, endy, x, y); break;

case 'd': /* */

sides = define_objekt(object, x, y); break;


    







Forekc.ru
, , , , , , , , , ,