home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / 14251 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  27 lines

  1. Newsgroups: comp.graphics
  2. 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
  3. From: eivind@kih.no (eivind hagen)
  4. Subject: Re: "fill" algorithm
  5. Message-ID: <1993Jan27.122027.9461@ulrik.uio.no>
  6. Sender: news@ulrik.uio.no (Mr News)
  7. Nntp-Posting-Host: samson.kih.no
  8. Organization: Kongsberg Ingeniorhogskole
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. References: <kenb.0pwj@amiganet.chi.il.us>
  11. Date: Wed, 27 Jan 1993 12:20:27 GMT
  12. Lines: 13
  13.  
  14. Ken Boi (kenb@amiganet.chi.il.us) wrote:
  15. > Could someone inform me as to how a 'fill' works in graphical painting. 
  16.  
  17. If you want it EASY, make a recursive call to the 4 adjacent pixels, and
  18. for each pixel, check if it is the reight colour, and then change the
  19. pixels colour.
  20. This is very slow, needs a BIG stack, but is foolproof!
  21.  
  22. --
  23. I--------------------------------------I-------------------------------------I
  24. I Eivind Hagen (eivind@samson.kih.no)  I  "I've got the POWER"               I
  25. I Zynx of Arc Empire                   I  (ARM 3 + cx486slc / 8 MB RAM)      I
  26. I--------------------------------------I-------------------------------------I
  27.