learn event and pixel draw