File:Recursive Flood Fill 4 (aka).gif

Description
English: This image shows the running recursive flood fill algorithm with four directions. This animation has been generated using the Perl script below.
Deutsch: Dieses Bild zeigt den Ablauf des Floodfill-Algorithmus mit vier Richtungen. Die Animation wurde mit untenstehender Perl-Funktion erzeugt.
Français : Cette image illustre l'algorithme récursif de remplissage par diffusion 4-connexe. Cette animation a été générée en utilisant le script Perl ci-dessous.
 ...
 
 sub FloodFill4
 {
    my ($x, $y) = @_;
    
    if ($im->getPixel ($x, $y) == $colfill)
    {
       $im->setPixel ($x, $y, $colpen);
       WriteImage ();
 
       FloodFill4 ($x, $y+1);
       FloodFill4 ($x, $y-1);
       FloodFill4 ($x+1, $y);
       FloodFill4 ($x-1, $y);
    }
 }
 
 ...
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.
Category:CC-BY-SA-2.5#Recursive%20Flood%20Fill%204%20(aka).gif
Category:Animations of algorithms Category:Animated GIF files Category:Flood fill
Category:Animated GIF files Category:Animations of algorithms Category:CC-BY-SA-2.5 Category:Flood fill Category:Pages using deprecated source tags