forums

TNT Basic Forums > Beyond Basic
Writing a fill tool
< Last Thread     Next Thread >
Author
Thread        Post A Reply

01-11-2004 14:27

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

Does anyone know how to write a fill tool or a magic wand tool? thanks...

01-11-2004 18:26

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Speaking as someone who's done this in other BASICs, it is brutally hard. It might be possible to do in TNT, but not for the faint of heart.

01-12-2004 22:47

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

Not necesserly in TNT, I'd just like to have the knowledge of it...

01-12-2004 23:46

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Not to dissuade you. I think TNT's procedures can use recursion, so maybe it would work. In any event, the algo is described pretty well here:

http://en.wikipedia.org/wiki/Flood_fill

Keep in mind: The version of this algorithm that is easiest to understand is also the one that will f' up the most. ;)

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.