
			pixel.onmouseenter = setColor;
			pixel.onclick = setColorOnClick;
			canvas.appendChild(pixel);
			pixel.px = i+1;
			pixel.py = j+1;
		}
	}
}

function setColor(){
	if (mouseDown == 0){return};
	if (isProcessing == true) {
		return
	}
	this.style.backgroundColor = selectedColor;
	this.style.opacity = selectedAlpha;
}

function setColorOnClick(){
	if (isProcessing == true) {
		return
	}
	this.style.backgroundColor = selectedColor;
	this.style.opacity = selectedAlpha;
}

function saveIcon(){
	if (isProc