nouser update

This commit is contained in:
JustAGenericUsername 2024-02-06 16:58:05 -05:00
parent c3aa2ef569
commit 500a4d342e
1 changed files with 37 additions and 6 deletions

View File

@ -1613,11 +1613,7 @@ elements.molten_bismuth = {
}
}
changePixel(pixel, "bismuth")
if (1 == 1){
var rgbResult = HSVtoRGB(pixel.tHue + 0.02, 0.8, 0.8);
} else {
var rgbResult = HSVtoRGB(pixel.tHue, 0.8, 0.8);
}
var rgbResult = HSVtoRGB(pixel.tHue + 0.08, 0.5, 0.9);
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');
@ -2039,4 +2035,39 @@ elements.element_filler = {
changePixel(pixel, pixel.changeElem)
}
}
}
}
var outlinerVar = 0
elements.outliner = {
color: elements.filler.color,
category: elements.filler.category,
onSelect: function() {
var answerot = prompt("Please input the desired element of this outliner. It will not work if you do multiple filter types while paused.",(outlinerVar||undefined));
if (!answerot) { return }
outlinerVar = mostSimilarElement(answerot);
},
tick: function(pixel){
var neighbors = 0;
if(!pixel.changeElem){
pixel.changeElem = outlinerVar;
if (pixel.nDelete == undefined){
pixel.nDelete = false
}
}
if (pixel.nDelete){
deletePixel(pixel.x, pixel.y)
}
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (!isEmpty(x,y, true)) {
neighbors = neighbors + 1;
}
}
if (neighbors >= 8){
pixel.nDelete = true
} else {
changePixel(pixel, pixel.changeElem)
}
}
}