for click detection and stuff. the reason it's so laggy is because it's going over every pixel and checking. you shouldn't do that, but it's fine for the demonstration istouching is also being updated every frame to tell you if your mouse is touching it