i also forgot types don't exist
This commit is contained in:
parent
8bc85d7385
commit
da801346a1
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ function tick_pattern() {
|
||||||
var g = Math.floor(Math.random() * 100);
|
var g = Math.floor(Math.random() * 100);
|
||||||
var b = Math.floor(Math.random() * 100);
|
var b = Math.floor(Math.random() * 100);
|
||||||
|
|
||||||
for (int i = 0; i < global.cfg.leds; i++) {
|
for (let i = 0; i < global.cfg.leds; i++) {
|
||||||
if (i % 3 == 0) {
|
if (i % 3 == 0) {
|
||||||
next_pattern[i] = r;
|
next_pattern[i] = r;
|
||||||
next_pattern[i + 1] = g;
|
next_pattern[i + 1] = g;
|
||||||
|
@ -34,7 +34,7 @@ function tick_pattern() {
|
||||||
|
|
||||||
export function tick() {
|
export function tick() {
|
||||||
var changed = false;
|
var changed = false;
|
||||||
for (int i = 0; i < global.cfg.leds; i++) {
|
for (let i = 0; i < global.cfg.leds; i++) {
|
||||||
if (next_pattern[i] != pixels[i]) {
|
if (next_pattern[i] != pixels[i]) {
|
||||||
changed = true;
|
changed = true;
|
||||||
fade(i);
|
fade(i);
|
||||||
|
|
Loading…
Reference in a new issue