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