2012-08-31 08:45:07 +00:00
|
|
|
/*
|
|
|
|
* @provide pskl.drawingtools.PaintBucket
|
|
|
|
*
|
|
|
|
* @require pskl.utils
|
|
|
|
*/
|
|
|
|
(function() {
|
|
|
|
var ns = $.namespace("pskl.drawingtools");
|
|
|
|
|
|
|
|
ns.PaintBucket = function() {
|
|
|
|
this.toolId = "tool-paint-bucket"
|
|
|
|
};
|
|
|
|
|
|
|
|
pskl.utils.inherit(ns.PaintBucket, ns.BaseTool);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2012-09-10 21:26:12 +00:00
|
|
|
ns.PaintBucket.prototype.applyToolAt = function(col, row, color, frame, overlay) {
|
2012-08-31 08:45:07 +00:00
|
|
|
|
2012-09-14 18:12:21 +00:00
|
|
|
pskl.PixelUtils.paintSimilarConnectedPixelsFromFrame(frame, col, row, color);
|
2012-08-31 08:45:07 +00:00
|
|
|
};
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|