![Java simple minesweeper](https://cdn2.cdnme.se/5447227/9-3/screenshot_4_64e629479606ee5be4b9a969.jpg)
The algorithm parameters Recursive flood fill with 8 directions Instead, see Even-odd rule and Nonzero-rule.
![java simple minesweeper java simple minesweeper](http://3.bp.blogspot.com/_RpZdLvqU4Cc/TT5UelOAKBI/AAAAAAAAAAU/McgZG_vDn1Q/s320/minesweeper.png)
![java simple minesweeper java simple minesweeper](https://mobimg.b-cdn.net/file_exchange/java_game_images/games/6/5012/real/5.jpg)
Note that flood filling is not suitable for drawing filled polygons, as it will miss some pixels in more acute corners. A variant called boundary fill uses the same algorithms but is defined as the area connected to a given node that does not have a particular attribute.
![java simple minesweeper java simple minesweeper](https://imhasib.files.wordpress.com/2011/10/minesweeper-medium.png)
It is used in the "bucket" fill tool of paint programs to fill connected, similarly-colored areas with a different color, and in games such as Go and Minesweeper for determining which pieces are cleared. Algorithm in computer graphics to add color or texture Recursive flood fill with 4 directionsįlood fill, also called seed fill, is a flooding algorithm that determines and alters the area connected to a given node in a multi-dimensional array with some matching attribute.
![Java simple minesweeper](https://cdn2.cdnme.se/5447227/9-3/screenshot_4_64e629479606ee5be4b9a969.jpg)