fill function
- Posted by Noah Smith <nhs6080 at UNIX.TAMU.EDU> Sep 20, 1998
- 598 views
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