Class FloodFill
- Namespace
 - PAC.ImageEditing
 
Handles flood-filling pixel art images.
public static class FloodFill
  - Inheritance
 - 
      
      FloodFill
 
- Inherited Members
 
Methods
GetPixelsToFill(Texture2D, IntVector2, bool, int)
Returns the largest connected (in terms of being adjacent) set containing startPoint where all pixels have the same colour.
public static IEnumerable<IntVector2> GetPixelsToFill(Texture2D texture, IntVector2 startPoint, bool includeDiagonallyAdjacent, int maxNumOfIterations = 1000000)
  Parameters
textureTexture2DstartPointIntVector2includeDiagonallyAdjacentboolWhether to flood-fill diagonally-adjacent pixels (as well as up/down/left/right-adjacent).
maxNumOfIterationsintAfter this many pixels have been enumerated, the method will stop. Useful to prevent huge frame drops when filling large areas.