kopia lustrzana https://github.com/rastapasta/mapscii
ESLint Disable no-constant-condition in Canvas
rodzic
f6485d9830
commit
1f7245644e
|
@ -110,6 +110,7 @@ class Canvas {
|
||||||
|
|
||||||
width = (width + 1) / 2;
|
width = (width + 1) / 2;
|
||||||
|
|
||||||
|
/* eslint-disable no-constant-condition */
|
||||||
while (true) {
|
while (true) {
|
||||||
this.buffer.setPixel(x0, y0, color);
|
this.buffer.setPixel(x0, y0, color);
|
||||||
let e2 = err;
|
let e2 = err;
|
||||||
|
@ -141,6 +142,7 @@ class Canvas {
|
||||||
y0 += sy;
|
y0 += sy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* eslint-enable */
|
||||||
}
|
}
|
||||||
|
|
||||||
_filledRectangle(x, y, width, height, color) {
|
_filledRectangle(x, y, width, height, color) {
|
||||||
|
|
Ładowanie…
Reference in New Issue