Skip to content

f_FloodFill

rasberry edited this page Aug 23, 2024 · 3 revisions

FloodFill

Usage

 Fills area(s) of color with another color
 -c (color)                   Fill color (default white)
 -p (x,y)                     Pick starting coordinate (can be specified multiple times)
 -i                           Replace pixels with ones taken the second layer
 -r (color)                   Treat all pixels of given color as starting points
 -s (number[%])               How similar pixels should be to match range: [0.0,1.0] (default 100%)
 -f (Fill)                    Use specified fill method (default BreadthFirst)
 -m (Map)                     Use specified mapping method (default Coordinate)
 -nl                          Create a new layer instead of replacing original(s)
 --metric (name)              Use a (registered) distance metric (defaults to euclidean)

 Fill Type:
 0. BreadthFirst
 1. DepthFirst

 Map Type:
 1. Horizontal
 2. Vertical
 3. Random
 4. Coordinate

Examples

pool pool, scorpius rainbow rainbow, scorpius toes-p toes-p, scorpius
-p 0,0 -p 50,50 FloodFill-pool-1 FloodFill-rainbow-1 FloodFill-toes-p-1
-p 0,0 -p 50,50 -s 0.9 FloodFill-pool-2 FloodFill-rainbow-2 FloodFill-toes-p-2
-p 0,0 -p 50,50 -s 0.9 -i FloodFill-pool-3 FloodFill-rainbow-3 FloodFill-toes-p-3
-p 100,100 -s 0.9 -i -f DepthFirst -m Horizontal FloodFill-pool-4 FloodFill-rainbow-4 FloodFill-toes-p-4