You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 8d54452 the code looks quite ugly, and requires serious refactoring. Things like this:
// assigning onchange event handler
cp.onchange = function (clr) {
var confus;
var red = (hexToRgb(clr).r);
var calcr = red*16;
var green = (hexToRgb(clr).g);
var calcg = green*16;
var blue = (hexToRgb(clr).b);
var calcb = blue*16;
var obj = {0: calcr, 1: calcg, 2: calcb}
confus = JSON.stringify(obj);
console.log(confus)
ws.send(confus);
colors = clr;
};
The text was updated successfully, but these errors were encountered:
As of 8d54452 the code looks quite ugly, and requires serious refactoring. Things like this:
The text was updated successfully, but these errors were encountered: