it go fast
This commit is contained in:
parent
13ac8b1e05
commit
940d025eaf
|
|
@ -2311,16 +2311,17 @@ elements.scuffed_circle_brush = {
|
||||||
color: elements.drag.color,
|
color: elements.drag.color,
|
||||||
excludeRandom: true,
|
excludeRandom: true,
|
||||||
state: "solid",
|
state: "solid",
|
||||||
movable: "false",
|
movable: false,
|
||||||
|
maxSize: 1,
|
||||||
onSelect: function(){
|
onSelect: function(){
|
||||||
var answerR = prompt("Radius of the brush.",(radiusVar||undefined));
|
var answerR = prompt("Radius of the brush. Things above 10 may be laggy.",(radiusVar||undefined));
|
||||||
if (!answerR) { return }
|
if (!answerR) { return }
|
||||||
radiusVar = answerR;
|
radiusVar = answerR;
|
||||||
var answerE = prompt("Element of the brush.",(circleElem||undefined));
|
var answerE = prompt("Element of the brush.",(circleElem||undefined));
|
||||||
if (!answerE) { return }
|
if (!answerE) { return }
|
||||||
circleElem = answerE;
|
circleElem = answerE;
|
||||||
var answerH = prompt("Replace? y or n. May be laggy.",(circleRep||undefined));
|
var answerH = prompt("Replace? True or false. May be laggy.",(circleRep||undefined));
|
||||||
if (!answerH) { return }
|
if (!answerH) { answerH = false }
|
||||||
circleRep = answerH;
|
circleRep = answerH;
|
||||||
},
|
},
|
||||||
tick: function(pixel){
|
tick: function(pixel){
|
||||||
|
|
@ -2332,7 +2333,7 @@ elements.scuffed_circle_brush = {
|
||||||
if (isEmpty(x, y)){
|
if (isEmpty(x, y)){
|
||||||
createPixel(circleElem, x, y)
|
createPixel(circleElem, x, y)
|
||||||
}
|
}
|
||||||
else if (!isEmpty(x, y, true) && !(circleRep == "n")){
|
else if (circleRep && !outOfBounds(x, y)){
|
||||||
deletePixel(x, y)
|
deletePixel(x, y)
|
||||||
createPixel(circleElem, x, y)
|
createPixel(circleElem, x, y)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue