Merge branch 'R74nCom:main' into main
This commit is contained in:
commit
e06c3bc4bb
|
|
@ -411,3 +411,4 @@ elements.algae.reactions.quicklime = { "elem1": ["oil","methane","methane","coal
|
|||
elements.algae.reactions.slaked_lime = { "elem1": ["oil","methane","methane","coal"], tempMin:280, chance:0.000025 };
|
||||
|
||||
delete elements.dirt.reactions.bone
|
||||
delete elements.rock.reactions.dead_plant
|
||||
|
|
|
|||
|
|
@ -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