add alpha to all colors

This commit is contained in:
John Alanbrook 2024-06-26 13:12:34 -05:00
parent b5e655e1f2
commit 42db19d748

View file

@ -95,10 +95,12 @@ Color.normalize = function(c) {
continue; continue;
} }
c[p][3] = 255;
for (var color of c[p]) { for (var color of c[p]) {
if (color > 1) { if (color > 1) {
fmt = "8b"; fmt = "8b";
break; break;
} }
} }