kopia lustrzana https://github.com/backface/turtlestitch
fixes #1349
rodzic
ebc29c76d5
commit
fec1055fb7
2
paint.js
2
paint.js
|
|
@ -740,7 +740,7 @@ PaintCanvasMorph.prototype.floodfill = function (sourcepoint) {
|
|||
ctx = this.paper.getContext("2d"),
|
||||
img = ctx.getImageData(0, 0, width, height),
|
||||
data = img.data,
|
||||
stack = [Math.round(sourcepoint.y) * width + sourcepoint.x],
|
||||
stack = [Math.round(Math.round(sourcepoint.y) * width + sourcepoint.x)],
|
||||
currentpoint,
|
||||
read,
|
||||
sourcecolor,
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue