fa0db", "#cfa0db", "#cfa0db"];
integer_cell_bits = [0, 0, 0, 1, 1, 0];

function init_integer() {
	var integer = document.getElementById("integer");
	integer_draw();
	
	integer.addEventListener('click', function(e){
		var canvas_rect = integer.getBoundingClientRect();
		var x = e.clientX - canvas_rect.left;
		var y = e.clientY - canvas_rect.top;
		for(var i = 0; i < integer_cell_xs.length; ++i) {
			if (x > integer_cell_xs[i] && x < integer_cell_xs[i] + cell_width && y > cell_y && y < cell_y + cell_height)
