我在我的应用程序中实现了四路泛洪填充,伪代码如下 1.Perform Flood-fill (one step to the west of node, target-color, replacement-color).Perform Flood-fill (one step to the east of node, target-color, replacement-color).Perform Flood-fill
Flood-fill (node, target-color, replacement-color):
1.Perform Flood-fill (one step to the south of node, target-color, replacement-color).Perform Flood-fill (one step to the north of node, target-color, replacement-color).Perform Flood-fill (one step to the west