mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #258 : Move resize method to utils + add unit test
This commit is contained in:
@@ -36,9 +36,10 @@
|
||||
};
|
||||
|
||||
ns.SimplePen.prototype.drawUsingPenSize = function(color, col, row, frame, overlay) {
|
||||
var pixels = pskl.app.penSizeService.getPixelsForPenSize(col, row);
|
||||
pixels.forEach(function (p) {
|
||||
this.draw(color, p[0], p[1], frame, overlay);
|
||||
var penSize = pskl.app.penSizeService.getPenSize();
|
||||
var points = pskl.PixelUtils.resizePixel(col, row, penSize);
|
||||
points.forEach(function (point) {
|
||||
this.draw(color, point[0], point[1], frame, overlay);
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user