varanswer=prompt("Please input the desired element to paint. It will not work if you enter multiple elements types while paused.",(selectivePaintElem||undefined));
if(!answer){return}
selectivePaintElem=mostSimilarElement(answer);
},
tool:function(pixel){
if(pixel.element==selectivePaintElem){
if(!shiftDown){
pixel.color=pixelColorPick(pixel,currentColor)
}
else{
// convert the hex of currentColor to rgb and set it as a string
varanswer2=prompt("Please input the desired element not to paint. It will not work if you enter multiple elements types while paused.",(selectivePaintElem2||undefined));
if(!answer2){return}
selectivePaintElem2=mostSimilarElement(answer2);
},
tool:function(pixel){
if(pixel.element!=selectivePaintElem2){
if(!shiftDown){
pixel.color=pixelColorPick(pixel,currentColor)
}
else{
// convert the hex of currentColor to rgb and set it as a string