12-10-2005, 04:16 PM
Quote:Admin/mod, there seems to be a problem... I don't see an edit button beside Z!re's posts. :lol:Hahaha =) poor you =)
Recursive Stuff Is Recursive Is Recursive is...
|
12-10-2005, 04:16 PM
Quote:Admin/mod, there seems to be a problem... I don't see an edit button beside Z!re's posts. :lol:Hahaha =) poor you =)
12-10-2005, 08:37 PM
Quote: Well I tried that but it only fills if the c is greater then 0 and only fills areas that are color 0, how can that be changed?
12-10-2005, 09:53 PM
Quote:Well I tried that but it only fills if the c is greater then 0 and only fills areas that are color 0, how can that be changed? This should work. The last argument of the sub is what color you want to fill. However, as was stated above, recursive functions take a lot of memory and aren't necessarily the best way to do this. As you will find, this code wont fill a shape thats much bigger than the one already there. Code: declare sub fill(x AS INTEGER, y AS INTEGER,c AS INTEGER, fc AS INTEGER)
12-10-2005, 10:05 PM
Code: declare sub fill(x AS INTEGER, y AS INTEGER,c AS INTEGER, fc AS INTEGER) Well this is what I did and it works perfectly, exactly like the Fill funstion in Ms Paint. |
« Next Oldest | Next Newest »
|