Jump to content

File:Recursive Flood Fill 4 (aka).gif

Page contents not supported in other languages.
From Wiktionary, the free dictionary

Recursive_Flood_Fill_4_(aka).gif (144 × 144 pixels, file size: 2 KB, MIME type: image/gif, looped, 24 frames, 11 s)

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

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 (2 KB)Aka

The following page uses this file:

Global file usage

The following other wikis use this file: