Ear Clipping Test Example

Click to create vertices. Press any key to clear. Nothing will be draw until you draw at least 3 vertices. Make sure you draw CCW order.