Thread
:
Filling in a shape
View Single Post
Jun 25th, 2007, 10:55 PM
#
2
The Dark
Expert Programmer
Join Date: Jun 2005
Posts: 894
Rep Power:
4
Your fill function could look at the current position, if it is empty, fill it and then call itself for the positions 1 to the left, 1 to the right, 1 up, and 1 down. If the position you are looking at is not empty (or out of bounds), do nothing.
The Dark
View Public Profile
Find More Posts by The Dark