Guest User

Untitled

a guest
Apr 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. 10 CLS
  2. 20 COLOR 1
  3. 30 FOR I=10 TO 200 STEP 2
  4. 40 LINE (5,I)-(205,I)
  5. 50 LINE(I,5)-(I,205)
  6. 60 NEXT I
  7. 70 PAINT (5,10),2,0
  8.  
  9. 10 CLS
  10. 20 COLOR 1
  11. 30 FOR I=2 TO 200
  12. 40 FOR J=2 TO 200
  13. 50 K=I MOD 4
  14. 60 L=J MOD 4
  15. 70 IF (K=L AND K<2) OR K*L=6 THEN PSET (I,J)
  16. 80 NEXT J
  17. 90 NEXT I
  18. 99 PAINT (0,0)
  19.  
  20. 10 MODE 1
  21. 20 PEN 1
  22. 30 FOR i%=1 TO 25
  23. 40 PRINT STRING$(40,"u");
  24. 50 NEXT i%
  25. 60 LOCATE 1,1
  26. 70 MOVE 10,14
  27. 80 FILL 1
  28.  
  29. void fill (x, y, col) {
  30. plot (x, y, col)
  31. if (point (x + 1, y) != col then fill (x + 1, y, col);
  32. if (point (x, y + 1) != col then fill (x, y + 1, col);
  33. if (point (x - 1, y) != col then fill (x - 1, y, col);
  34. if (point (x, y - 1) != col then fill (x, y - 1, col);
  35. }
  36.  
  37. typedef struct fillBufferT {
  38. int x1, x2;
  39. };
  40.  
  41. fillBufferT buffer [vertical_res];
Add Comment
Please, Sign In to add comment