Behavior : Flood fill
Author:Rex.Rainbow
- Flood fill on canvas. Reference:https://github.com/binarymax/floodfill.js
Download
Actions
One tick
Action:Fill
Prepare
Action:Set fill color
- Set fill color.
- Color ( string ) : A DOMString parsed as CSS <color> value.
Action:Set start point
- Set start point.
- x ( number ) : The x axis of the coordinate for the starting point.
- y ( number ) : The y axis of the coordinate for the starting point.
Action:Set tolerance
- Set tolerance.
- Tolerance ( number ) : 0: fills pixels exactly matching that of the starting x,y coordinate; 128: anti-alias; 254: fill over all other pixels.
Action:Set bounding box
- Set bounding box.
- Left ( number ) : Prevent the fill from occuring at any pixel coordinate with x less than this left value.
- Top ( number ) : Prevent the fill from occuring at any pixel coordinate with y less than this top value.
- Right ( number ) : Prevent the fill from occuring at any pixel coordinate with x greater than this left value.
- Bottom ( number ) : Prevent the fill from occuring at any pixel coordinate with y greater than this top value.