41 lines
913 B
JavaScript
41 lines
913 B
JavaScript
elements.water.reactions.petal = {
|
|
func: function(pixel1, pixel2) {
|
|
if (pixel1.temp > 64) {
|
|
deletePixel(pixel1.x, pixel1.y);
|
|
pixel2.element = "dye";
|
|
}
|
|
}
|
|
}
|
|
elements.salt_water.reactions.petal = {
|
|
func: function(pixel1, pixel2) {
|
|
if (pixel1.temp > 64) {
|
|
deletePixel(pixel1.x, pixel1.y);
|
|
pixel2.element = "dye";
|
|
}
|
|
}
|
|
}
|
|
elements.sugar_water.reactions.petal = {
|
|
func: function(pixel1, pixel2) {
|
|
if (pixel1.temp > 64) {
|
|
deletePixel(pixel1.x, pixel1.y);
|
|
pixel2.element = "dye";
|
|
}
|
|
}
|
|
}
|
|
elements.seltzer.reactions.petal = {
|
|
func: function(pixel1, pixel2) {
|
|
if (pixel1.temp > 64) {
|
|
deletePixel(pixel1.x, pixel1.y);
|
|
pixel2.element = "dye";
|
|
}
|
|
}
|
|
}
|
|
elements.pool_water.reactions.petal = {
|
|
func: function(pixel1, pixel2) {
|
|
if (pixel1.temp > 64) {
|
|
deletePixel(pixel1.x, pixel1.y);
|
|
pixel2.element = "dye";
|
|
}
|
|
}
|
|
}
|