Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.30 KB | None | 0 0
  1. procedure FillRecursive;
  2. var tempx,tempy:integer;
  3. begin
  4. if(isValid(gx, gy))
  5. then begin
  6. SetPixel(gx, gy, fillColor);
  7. tempx:=gx;
  8. tempy:=gy;
  9. gx := gx + 1;
  10. FillRecursive;
  11. gx := gx - 2;
  12. FillRecursive;
  13. gy := gy + 1;
  14. FillRecursive;
  15. gy := gy - 2;
  16. FillRecursive;
  17. gx:=tempx;
  18. gy:=tempy;
  19. end;
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement