check pixel temperature

This commit is contained in:
Sightnado 2022-02-11 16:57:01 -05:00 committed by GitHub
parent 42e3fe6008
commit 8e92ebd394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 6 deletions

View File

@ -1,35 +1,40 @@
elements.superheat = { elements.superheat = {
color: "#ff2f2f", color: "#ff2f2f",
tool: function(pixel) { tool: function(pixel) {
pixel.temp += 10 pixel.temp += 10;
pixelTempCheck(pixel)
}, },
category: "tools", category: "tools",
}; };
elements.supercool = { elements.supercool = {
color: "#2f2fff", color: "#2f2fff",
tool: function(pixel) { tool: function(pixel) {
pixel.temp += -10 pixel.temp += -10;
pixelTempCheck(pixel)
}, },
category: "tools", category: "tools",
}; };
elements.hyperheat = { elements.hyperheat = {
color: "#ff5f5f", color: "#ff5f5f",
tool: function(pixel) { tool: function(pixel) {
pixel.temp += 50 pixel.temp += 50;
pixelTempCheck(pixel)
}, },
category: "tools", category: "tools",
}; };
elements.hypercool = { elements.hypercool = {
color: "#5f5fff", color: "#5f5fff",
tool: function(pixel) { tool: function(pixel) {
pixel.temp += -50 pixel.temp += -50;
pixelTempCheck(pixel)
}, },
category: "tools", category: "tools",
}; };
elements.absolutezero = { elements.absolutezero = {
color: "#d1f7ff", color: "#d1f7ff",
tool: function(pixel) { tool: function(pixel) {
pixel.temp = -273.15 pixel.temp = -273.15;
pixelTempCheck(pixel)
}, },
category: "tools", category: "tools",
}; };