File:Recursive Flood Fill 8 (aka).gif

Recursive_Flood_Fill_8_(aka).gif(144 × 144 pixels, file size: 3 KB, MIME type: image/gif, looped, 40 frames, 15 s)

Captions

Captions

Add a one-line explanation of what this file represents
Description
English: This image shows the running recursive flood fill algorithm with eight directions. This animation has been generated using the Perl script below.
Deutsch: Dieses Bild zeigt den Ablauf des Floodfill-Algorithmus mit acht Richtungen. Die Animation wurde mit untenstehender Perl-Funktion erzeugt.
Français : Cette image illustre l'exécution récursive de l'algorithme de remplissage par diffusion dans sa variante 8-connexe. Cette animation a été générée à l'aide du script Perl ci-dessous.
 ...
 
 sub FloodFill8
 {
    my ($x, $y) = @_;
    
    if ($im->getPixel ($x, $y) == $colfill)
    {
       $im->setPixel ($x, $y, $colpen);
       WriteImage ();
 
       FloodFill8 ($x, $y+1);
       FloodFill8 ($x, $y-1);
       FloodFill8 ($x+1, $y);
       FloodFill8 ($x-1, $y);
       FloodFill8 ($x+1, $y+1);
       FloodFill8 ($x+1, $y-1);
       FloodFill8 ($x-1, $y+1);
       FloodFill8 ($x-1, $y-1);
    }
 }
 
 ...
Please help translating the description into more languages. Thanks a lot!


If you want a license with the conditions of your choice, please email me to negotiate terms.

best new image

image
Date

27 December 2005

Source

Own work

Author

André Karwath aka Aka

Permission
(Reusing this file)
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:18, 27 December 2005Thumbnail for version as of 21:18, 27 December 2005144 × 144 (3 KB)Aka (talk | contribs)

The following page uses this file:

File usage on other wikis

The following other wikis use this file: