A YouTube description of Boundary Fill (#31505)

This commit is contained in:
ar03
2019-01-14 19:27:12 -06:00
committed by Tom
parent 55c627d719
commit 45d8907d00

View File

@ -36,3 +36,7 @@ void boundary_fill(int pos_x, int pos_y, int boundary_color, int fill_color)
} }
``` ```
From the given code you can see that for any pixel that you land on, you first check whether it can be changed to the fill_color and then you do so for its neighbours till all the pixels within the boundary have been checked. From the given code you can see that for any pixel that you land on, you first check whether it can be changed to the fill_color and then you do so for its neighbours till all the pixels within the boundary have been checked.
### More Information:
[A YouTube presentation of Boundary Fill](https://www.youtube.com/watch?v=au2CslPa4xU)