Flood Fill Algorithms

前端 未结 7 2246
借酒劲吻你
借酒劲吻你 2020-11-30 08:40

Its the weekend again, and that means I get to play with my hobby project.

I\'ve gotten tired of creating test levels by hand, so I thought I\'d take a break from en

7条回答
  •  借酒劲吻你
    2020-11-30 08:54

    Wikpedia provides some pseudocode examples of different flood fill techniques on their Flood fill article. Which technique you choose depends on the application.

    Remember that flood filling can easily be threaded (similar to how quicksort can be).

提交回复
热议问题