Computer Science Canada A different Draw.Fill |
Author: | copthesaint [ Mon Mar 02, 2009 8:28 pm ] | ||
Post subject: | A different Draw.Fill | ||
This is also posted on the 20 lines or less topic but I made a forum if anyone want to use this. Basicly If will replace the dots of a color is an area. this in a way is better because it won't delete all the other colors like draw.fill does. If sure people will find use in this. I have already.
|
Author: | Tony [ Mon Mar 02, 2009 8:43 pm ] | ||
Post subject: | RE:A different Draw.Fill | ||
it serves a somewhat different purpose though.
also, there's a problem with the interpretation of Y2Value |
Author: | The_Bean [ Mon Mar 02, 2009 9:39 pm ] | ||
Post subject: | Re: A different Draw.Fill | ||
A lot simpler way would be...
Fewer lines of code, and the y value is correct. |
Author: | The_Bean [ Mon Mar 02, 2009 11:20 pm ] | ||
Post subject: | Re: A different Draw.Fill | ||
Heres an attempt at what I think you're trying to get at. It's a Draw.Fill() but instead of going over every colour within another colour, it branches out from the given point replacing the colour you want with a different colour until it can't go anymore. It's made using an idea from A* path finding to make it more efficient, but it's still fairly slow.
|
Author: | copthesaint [ Tue Mar 03, 2009 8:41 am ] | ||
Post subject: | Re: A different Draw.Fill | ||
![]() ![]() ![]() ![]() ![]() The_Bean wrote: A lot simpler way would be...
Fewer lines of code, and the y value is correct. Yea obvious also thanks for example of flexible array. I'll spend an hour and learn about it. (already understand it just have to learn using it) |