@Override
	public void colorButtonHit(Color c) {

		color = c;
		GUIFunctions.changeSelectedColor(c);

		if (mode == Mode.SELECT && shape != null) {
			shape.setColor(c);
			GUIFunctions.refresh();
		}
	}