removed console.log spam

This commit is contained in:
redbirdly 2024-05-21 09:29:41 +08:00 committed by GitHub
parent 13c0b38ed6
commit 0ddefb1aea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
};
};