				integer_cell_bits[i] = 1 - integer_cell_bits[i];
		}
		integer_draw();
	}, false);
}

function integer_draw() {
	var integer = document.getElementById("integer");
	var integer_context = integer.getContext("2d");

	// background
	integer_context.fillStyle="#dbd5a0";
	integer_context.fillRect(0, 0, w, h);
	
	// cells
	for(var i = 0; i < integer_cell_xs.length; ++i) {
		integer_context.fillStyle = integer_cell_colors[i];
		integer_context.fillRect(integer_cell_xs[i], cell_y, cell_width, cell_height);
		
		