
		setTimeout(startProcess, 0.000000000000001,pixels,index+1)
	}
}

function getData(ref,p_width,p_height){
	source = ref.replace("href='", "byond://")

	var remake = false
	if (p_width != max_x || p_height != max_y) {
		remake = true
	}
	max_x = p_width
	max_y = p_height
	main()
}

function pickColor(){
	var picker = document.getElementById("colorinput")
	picker.style.backgroundColor = "#"+picker.value
	picker.style.opacity = selectedAlpha
	selectedColor = picker.style.backgroundColor
}

function setAlpha(