Remove ES6-specific code
This commit is contained in:
parent
690c4495ad
commit
a6f1b1c483
1 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ function hero() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let drawLine = (ind, context, startX, startY, endX, endY, color) => {
|
function drawLine(ind, context, startX, startY, endX, endY, color) {
|
||||||
let dx = startX - endX;
|
let dx = startX - endX;
|
||||||
let dy = startY - endY;
|
let dy = startY - endY;
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ function hero() {
|
||||||
let yAdjust = (endY - startY) / increments;
|
let yAdjust = (endY - startY) / increments;
|
||||||
let counter = 1;
|
let counter = 1;
|
||||||
|
|
||||||
let line = () => {
|
function line() {
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
context.lineWidth = 1.9;
|
context.lineWidth = 1.9;
|
||||||
context.moveTo(x, y);
|
context.moveTo(x, y);
|
||||||
|
@ -112,7 +112,7 @@ function hero() {
|
||||||
timeouts[ind] = window.setTimeout(line, delay);
|
timeouts[ind] = window.setTimeout(line, delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
let drawCircle = (context, x, y, radius, color) => {
|
function drawCircle(context, x, y, radius, color) {
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
context.fillStyle = color;
|
context.fillStyle = color;
|
||||||
context.arc(x, y, radius, 0, 2 * Math.PI);
|
context.arc(x, y, radius, 0, 2 * Math.PI);
|
||||||
|
|
Loading…
Reference in a new issue