fill function

new topic     » topic index » view thread      » older message » newer message

Story-time kiddos:

Alright.  So I teach one of my goofy C friends how to use virtual
screens (that whole #A0000 thing with a memcopy).  Anyways, he keeps
having algorithm problems like, that he needs multiple virtual screens
if he has static background with moving foreground, etc.  But he can't
read to/from windows bmps, so he has to make his own routines to create
pictures for his virtual screens (even tho I wrote him a prog that
converts .bmp to his format and back).  But he's really stubborn, and
insists on using his own routines, which are horrible.  So I created a
good line algorithm which he translated into C (looked like Sanskrit to
me), and I gave him an algorithm for a good circle (untested), but I'm
totally stumped on a good fill algorithm.  He's got this awful recursive
thing that causes "stack overflow" (?) on occasion.  Anyone know a good
fill algorithm that I could help the ingrate out with?

snortboy

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu