그림:Recursive Flood Fill 4 (aka).gif

위키백과 ― 우리 모두의 백과사전.

Recursive_Flood_Fill_4_(aka).gif (3KB, MIME 종류: image/gif)

위키미디어 공용 로고 이 자료는 위키미디어 공용에 있습니다. 해당 문서의 자료에 대한 설명이 아래에 있습니다.

Recursive Flood Fill

This image shows the running recursive flood fill algorithm with four directions.

  • Creator André Karwath aka Aka
  • Date 2005-12-27


This animation has been generated using the following Perl function:

...

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);
   }
}

...
Creative Commons License
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike 2.5 License

다음 문서들이 이 그림을 사용하고 있습니다: