kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #1847 from bromagosa/floodfill-fix
[resubmitting to dev branch] fixes #1349upd4.1
commit
c8aa75e4f9
2
paint.js
2
paint.js
|
@ -747,7 +747,7 @@ PaintCanvasMorph.prototype.floodfill = function (sourcepoint) {
|
||||||
ctx = this.paper.getContext("2d"),
|
ctx = this.paper.getContext("2d"),
|
||||||
img = ctx.getImageData(0, 0, width, height),
|
img = ctx.getImageData(0, 0, width, height),
|
||||||
data = img.data,
|
data = img.data,
|
||||||
stack = [Math.round(sourcepoint.y) * width + sourcepoint.x],
|
stack = [Math.round(Math.round(sourcepoint.y) * width + sourcepoint.x)],
|
||||||
currentpoint,
|
currentpoint,
|
||||||
read,
|
read,
|
||||||
sourcecolor,
|
sourcecolor,
|
||||||
|
|
Ładowanie…
Reference in New Issue