@Override
	public void handleEvent(PointerEvent event) {

		if(event.onButtonDown(MouseButton.MOUSE_BUTTON_LEFT)) {

			startPointX = event.getX();
			startPointY = event.getY();

			undefinedColor = primaryColor;
			anotherColor = secundaryColor;

			temporary = true;

		}

		if(event.onButtonDown(MouseButton.MOUSE_BUTTON_RIGHT)) {

			startPointX = event.getX();
			startPointY = event.getY();

			undefinedColor = secundaryColor;
			anotherColor = primaryColor;

			temporary = true;

		}

		if(event.onButtonUp(MouseButton.MOUSE_BUTTON_LEFT)||event.onButtonUp(MouseButton.MOUSE_BUTTON_RIGHT)) {

			drawPermanent(event.getX(), event.getY());

			temporary = false;

		}

	}