2012-08-31 08:45:07 +00:00
|
|
|
/*
|
|
|
|
* @provide pskl.drawingtools.PaintBucket
|
|
|
|
*
|
|
|
|
* @require pskl.utils
|
|
|
|
*/
|
|
|
|
(function() {
|
|
|
|
var ns = $.namespace("pskl.drawingtools");
|
|
|
|
|
|
|
|
ns.PaintBucket = function() {
|
2012-09-15 18:25:45 +00:00
|
|
|
this.toolId = "tool-paint-bucket";
|
|
|
|
this.helpText = "Paint bucket tool";
|
2012-08-31 08:45:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|