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 ![]() |
---|---|---|
Date |
27 December 2005 | |
Source |
Own work | |
Author |
André Karwath aka Aka | |
Permission (Reusing this file) |
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic license.
|