Advertisement
Guest User

RectClearDraw

a guest
Dec 13th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.15 KB | None | 0 0
  1. const bool see[8][16] =
  2.   {
  3.     {
  4.     0,1,1,1,
  5.     1,1,0,1,
  6.     0,1,1,0,
  7.     0,0,1,0
  8.     },{
  9.     0,0,1,0,
  10.     1,0,0,0,
  11.     0,1,1,1,
  12.     0,0,0,1
  13.     },{
  14.     0,1,0,0,
  15.     1,1,1,1,
  16.     0,1,0,0,
  17.     0,0,1,0
  18.     },{
  19.     0,1,0,0,
  20.     1,1,0,1,
  21.     0,1,0,0,
  22.     0,0,0,0
  23.     },{
  24.     1,1,1,0,
  25.     1,1,0,1,
  26.     1,1,1,0,
  27.     0,0,1,1
  28.     },{
  29.     1,1,1,0,
  30.     1,1,0,1,
  31.     1,1,1,0,
  32.     1,1,1,1
  33.     },{
  34.     0,0,1,0,
  35.     1,0,0,1,
  36.     0,0,0,0,
  37.     0,0,1,0
  38.     },{
  39.     1,0,0,0,
  40.     0,1,1,0,
  41.     1,0,0,0,
  42.     1,1,0,1
  43.     }
  44.   };
  45.  
  46. task main()
  47.   {
  48.   for (int i=0; i<8; i++)
  49.     {
  50.     for (int j=0; j<4; j++)
  51.       {
  52.       for (int k=0; k<4; k++)
  53.         {
  54.         bool tf=(see[i][j*4+k]);
  55.         //int  drawopt=(tf*32);  // 00 32  NORMAL    FILL
  56.         int drawopt=(tf*28)+4;   // 04 32  CLEAR     FILL
  57.         //int drawopt=(tf  ) +3; // 03 04  CLRMODES  CLEAR
  58.         //int drawopt=(tf*4) +4; // 04 08  CLEAR     LOGIC AND
  59.         //int drawopt=(tf*6) +4; // 04 10  CLEAR     LOGIC OR
  60.         //int drawopt=(tf*14)+4; // 04 18  CLEAR     LOGIC XOR
  61.         RectOut(k*8,j*8,8,8,drawopt);
  62.         }
  63.       }
  64.     Wait(1000);
  65.     }
  66.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement