Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - fg_fill http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 fg_fill

   Usage
   #include <fg.h>
   void  far  fg_fill(fg_coord_t x, fg_coord_t y,  fg_color_t  fillcolor,
   fg_color_t boundary);

   Description
   fg_fill does a boundary fill. It starts at (x,y) and draws pixels with
   fillcolor in the left, right, up and down directions until pixels with
   color boundary are encountered.

   fg_fill  is recursive in nature, and for complex fills it requires  an
   arbitrarily  large  amount  of memory to  store  the  recursion  data.
   fg_fill  does  dynamic memory allocation as required, so it  does  not
   suffer from stack overflows or require the amount of memory needed  to
   be  specified in advance. If it does run out of memory it will  simply
   terminate without completing the fill.

   Example
   /* fill an area in green, as bounded by white starting
   at coords 100,100 */
   fg_fill(100, 100, FG_GREEN, FG_WHITE);


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson