home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!ugle.unit.no!nuug!nntp.uio.no!eivind
- From: eivind@kih.no (eivind hagen)
- Subject: Re: "fill" algorithm
- Message-ID: <1993Jan27.122027.9461@ulrik.uio.no>
- Sender: news@ulrik.uio.no (Mr News)
- Nntp-Posting-Host: samson.kih.no
- Organization: Kongsberg Ingeniorhogskole
- X-Newsreader: TIN [version 1.1 PL8]
- References: <kenb.0pwj@amiganet.chi.il.us>
- Date: Wed, 27 Jan 1993 12:20:27 GMT
- Lines: 13
-
- Ken Boi (kenb@amiganet.chi.il.us) wrote:
- > Could someone inform me as to how a 'fill' works in graphical painting.
-
- If you want it EASY, make a recursive call to the 4 adjacent pixels, and
- for each pixel, check if it is the reight colour, and then change the
- pixels colour.
- This is very slow, needs a BIG stack, but is foolproof!
-
- --
- I--------------------------------------I-------------------------------------I
- I Eivind Hagen (eivind@samson.kih.no) I "I've got the POWER" I
- I Zynx of Arc Empire I (ARM 3 + cx486slc / 8 MB RAM) I
- I--------------------------------------I-------------------------------------I
-