removed console.log spam
This commit is contained in:
parent
13c0b38ed6
commit
0ddefb1aea
|
|
@ -4,7 +4,6 @@ let topColor = 'rgb(130, 0, 0)';
|
|||
let blending = 0.7;
|
||||
|
||||
function cssColorToRGB(color) {
|
||||
console.log(color);
|
||||
let rgbMatch = color.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
||||
return [parseInt(rgbMatch[1]), parseInt(rgbMatch[2]), parseInt(rgbMatch[3])];
|
||||
}
|
||||
|
|
@ -29,4 +28,4 @@ elements.fire.tick = function(pixel) {
|
|||
let originalColor = pixel.color;
|
||||
pixel.color = blendColors(originalColor, topColor, blending);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue