Merge pull request #709 from JustAGenericUsername/main

galvanized square steel
This commit is contained in:
slweeb 2024-06-22 16:25:10 -04:00 committed by GitHub
commit 6fc5f50369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 7 deletions

View File

@ -2884,16 +2884,16 @@ elements.specific_ray_emitter = {
pixel.rgb[0] = parseInt(pixel.rgb[0])
pixel.rgb[1] = parseInt(pixel.rgb[1])
pixel.rgb[2] = parseInt(pixel.rgb[2])
console.log(pixel.rgb)
//console.log(pixel.rgb)
var hsvResult = RGBtoHSV(pixel.rgb[0], pixel.rgb[1], pixel.rgb[2]);
pixel.tHue = hsvResult.h;
var rgbResult = HSVtoRGB(pixel.tHue + (1/360), 1, 1);
console.log(rgbResult)
//console.log(rgbResult)
const hexR = rgbResult.r.toString(16).padStart(2, '0');
const hexG = rgbResult.g.toString(16).padStart(2, '0');
const hexB = rgbResult.b.toString(16).padStart(2, '0');
const hexCode = `#${hexR}${hexG}${hexB}`;
console.log(hexCode)
//console.log(hexCode)
pixel.color = pixelColorPick(pixel, hexCode)}
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
@ -3201,7 +3201,8 @@ elements.gallium_nitride = {
}
}
}
}
},
movable: false,
}
elements.molten_gallium_nitride = {
color: ["#d29d70", "#cf8e5e", "#cd7e4e", "#ca6d40", "#c75b33"],
@ -3237,7 +3238,8 @@ elements.gallium_phosphide = {
}
}
}
}
},
movable: false,
}
elements.molten_gallium_phosphide = {
color: ["#a36936", "#cf8e5e", "#9b4c1c", "#ca6d40", "#a13d19"],
@ -3287,7 +3289,8 @@ elements.function_machine = {
}
}
}
}
},
excludeRandom: true,
}
elements.galvanized_steel = {
color: "#4c585f",
@ -3325,7 +3328,8 @@ elements.galvanized_steel = {
}
}
}
}
},
movable: false
}
if (!eLists.metals) { eLists.metals = [] }
eLists.metals = eLists.metals.concat(["galvanized_steel"])