1164 }
1165
1166 i = 0
1167 var loopingFunction, stoppingFunction1168 if (settings.wait !== 0) {
1169 loopingFunction = window.setTimeout
1170 stoppingFunction = window.clearTimeout
1164 }
1165
1166 i = 0
1167 var loopingFunction, stoppingFunction1168 if (settings.wait !== 0) {
1169 loopingFunction = window.setTimeout
1170 stoppingFunction = window.clearTimeout
1107 canvas.getContext('2d').getImageData(0, 0, ngx * g, ngy * g).data
1108
1109 gx = ngx
1110 var x, y1111 while (gx--) {
1112 grid[gx] = []
1113 gy = ngy
1107 canvas.getContext('2d').getImageData(0, 0, ngx * g, ngy * g).data
1108
1109 gx = ngx
1110 var x, y1111 while (gx--) {
1112 grid[gx] = []
1113 gy = ngy
1067 if not, update the grid to the current canvas state */
1068 grid = []
1069
1070 var gx, gy, i1071 if (!canvas.getContext || settings.clearCanvas) {
1072 elements.forEach(function (el) {
1073 if (el.getContext) {
In JavaScript, variables can be assigned during declaration, or at any point afterwards using an assignment statement. For example, in the following code, foo
is initialized during declaration, while bar
is initialized later.
var foo = 1;
var bar;
if (foo) {
bar = 1;
} else {
bar = 2;
}
function foo() {
var bar;
let baz;
}
function foo() {
var bar = 1;
let baz = 2;
const qux = 3;
}