sandboxels/mods/elementreplacer.js

12 lines
382 B
JavaScript
Raw Permalink Normal View History

2025-01-12 20:20:02 -05:00
elements.element_replacer = {
color: ["#ff007a", "#4625e3"],
onSelect: function(){
var answerreplace = prompt("Element to replace clicked elements with:");
if (!answerreplace) {return}
replacingelement = mostSimilarElement(answerreplace);
},
tool: function(pixel) {
pixel.element = replacingelement
},
category: "tools",
};