Mouse over triangle. It should light up. This is a demo to check if a point (in this case, the mouse) is inside of a triangle. If it is, make the triangle brighter. I do not understand the math, so please don't ask. I found it on Stack Overflow.