[racket] flood-fill?

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Sun Oct 5 21:23:19 EDT 2014

On Sun, Oct 5, 2014 at 10:30 PM, Jens Axel Søgaard
<jensaxel at soegaard.net> wrote:
> Maybe this can be used?
>
> https://github.com/acmeism/RosettaCodeData/blob/master/Task/Bitmap-Flood-fill/Racket/bitmap-flood-fill.rkt

Yes!  Much better than mine. Thank you.

However, it uses a straight deep-first recursion with no auxiliary
data structure.  This is fast but uses gigabytes of memory. It should
be easy to modify it to better fit my need, though.  Thank you again!

It works well enough to allow me to produce a first prototype:
https://farm3.staticflickr.com/2949/15266971540_1d7cccaec0_k.jpg

Cheers
P.


Posted on the users mailing list.