gitpush
This commit is contained in:
parent
53f593d13e
commit
a29cec8c08
@ -146,7 +146,6 @@
|
|||||||
client.on('action', ({ action, x, y, color, pixels }) => {
|
client.on('action', ({ action, x, y, color, pixels }) => {
|
||||||
var leds = document.querySelectorAll('.led')
|
var leds = document.querySelectorAll('.led')
|
||||||
if (color == undefined) color = [0, 0, 0]
|
if (color == undefined) color = [0, 0, 0]
|
||||||
|
|
||||||
var [r, g, b] = color
|
var [r, g, b] = color
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'clear':
|
case 'clear':
|
||||||
|
Loading…
Reference in New Issue
Block a user