Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.46 KB | None | 0 0
  1. type  R3 = Array[1..10,1..20,1..2] of byte;
  2.       miniR3 = Array[1..4,1..4,1..2] of byte;
  3.  
  4. var Matriz  : R3;
  5.     Next: miniR3;
  6.  
  7. Procedure ImprimeProxima( Xs, Ys, Xf, Yf, Is, Ifi, Js, Jfi : byte; mat : miniR3  );
  8. var x, y : byte;
  9. begin
  10.     clrscr;
  11.     Window( Xs, Ys, Xf, Yf );
  12.     for y := Is to Ifi do
  13.         for x:= Js to Jfi do
  14.             if mat[x,y,1] <> 0 then
  15.             begin
  16.                 GotoXY( x, ( (Ifi + 1) - y ) );
  17.                 TextColor( mat[x,y,2] );
  18.                 write( chr(254) );
  19.             end;
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement