home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / shareware / share_43 / source / c / OLDARC < prev    next >
Text File  |  1991-08-22  |  446b  |  32 lines

  1. #include "ARTHUR.H"
  2.  
  3. void display_finished ()
  4.    {
  5.    cls();
  6.    }
  7.  
  8. void display_init ()
  9.    {
  10.    mode(15);
  11.    cursor(0);
  12.    }
  13.  
  14. void display_close ()
  15.    {
  16.    cls();
  17.    }
  18.  
  19. void display_plot (x, y, Red, Green, Blue)
  20.    int x, y;
  21.    char Red, Green, Blue;
  22.    {
  23.    int Tnt;
  24.    Red=Red/64;
  25.    Green=(Green/64)<<2;
  26.    Blue=(Blue/64)<<4;
  27.    Tnt=((Red+Blue+Green)/192)<<6;
  28.    gcol(0,Red+Green+Blue);
  29.    plot(69,x * 4,1024-(y * 4));
  30.    }
  31.  
  32.