home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / 1991 / 05 / titel / demo.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-12  |  2.4 KB  |  88 lines

  1. /***********************************************************
  2. * Von Drawbridge generiertes C-Listing zur Grafikerzeugung *
  3. *             (C) Petra Brendel & toolbox 1991             *
  4. ***********************************************************/
  5.  
  6. #include <stdio.h>
  7. #include <graph.h>
  8. #include <stdio.h>
  9.  
  10. #define _SOLID_LINE 0xffff
  11. #define _CENTERED_LINE 0x3e1f
  12.  
  13. unsigned
  14. char far * FILLMASK01 = "\xff\xff\xff\xff\xff\xff\xff\xff";
  15. unsigned
  16. char far * FILLMASK22 = "\x80\xff\x80\x80\x80\x80\x80\x80";
  17.  
  18. void main()
  19. {
  20.  face();
  21.  (void) getch();
  22. }
  23.  
  24. /* Datei ab hier von Drawbridge generiert, Quick C ab V.2.0
  25.    Include-Dateien und Prototypen "zu Fuß" eintragen      */
  26.  
  27. face()
  28. {
  29.  _setvideomode(_VRES16COLOR);
  30.  
  31. /**********   Zur Sicherheit "zu Fuß" eingefügt   *********/
  32.  if( _registerfonts( "TMSRB.FON" ) <= 0 )
  33.     {
  34.      _outtext("Kann Fontdatei 'TMSRB.FON' nicht finden!");
  35.      exit(1);
  36.     }
  37. /**********************************************************/
  38.  
  39.  _setbkcolor(_BLUE);
  40.  _setcolor(15);
  41.  _setlinestyle(_SOLID_LINE);
  42.  _rectangle(_GBORDER,282,176,549,348);
  43.  _setcolor(10);
  44.  _setfillmask(FILLMASK22);
  45.  _ellipse(_GFILLINTERIOR,328,222,395,237);
  46.  _ellipse(_GFILLINTERIOR,432,222,497,240);
  47.  _setcolor(6);
  48.  _setfillmask(FILLMASK01);
  49.  _ellipse(_GFILLINTERIOR,371,297,450,312);
  50.  _setcolor(15);
  51.  _setlinestyle(_CENTERED_LINE);
  52.  _moveto(363,348);
  53.  _lineto(350,438);
  54.  _lineto(327,438);
  55.  _lineto(327,438);
  56.  _moveto(448,348);
  57.  _lineto(463,438);
  58.  _lineto(489,438);
  59.  _setlinestyle(_SOLID_LINE);
  60.  _setfillmask(NULL);
  61.  _arc(251,69,361,281,361,175,306,69);
  62.  _arc(446,74,552,276,499,74,446,175);
  63.  _setcolor(12);
  64.  _setfillmask(FILLMASK01);
  65.  _ellipse(_GFILLINTERIOR,293,55,307,70);
  66.  _ellipse(_GFILLINTERIOR,499,61,514,75);
  67.  _setcolor(14);
  68.  _setfillmask(NULL);
  69.  _arc(70,267,370,335,370,301,220,267);
  70.  _arc(218,294,522,302,218,298,370,302);
  71.  _arc(132,256,218,340,175,340,218,298);
  72.  _arc(130,214,244,286,187,214,130,250);
  73.  _arc(153,213,221,317,221,265,187,213);
  74.  _arc(77,248,181,328,129,248,77,288);
  75.  _arc(77,238,145,338,77,288,111,338);
  76.  _arc(111,301,173,375,111,338,142,375);
  77.  _arc(100,303,178,375,139,375,178,339);
  78.  _setfont("t'Tms Rmn' r b w17 h21");
  79.  _moveto(109,261);
  80.  _outgtext("Ich lese ");
  81.  _moveto(109,285);
  82.  _outgtext("toolbox!");
  83.  _moveto(109,309);
  84.  _outgtext("Sie auch?");
  85. }
  86. /**********************************************************/
  87. /*                 Ende von Demolisting.C                 */
  88.