Source code (Processing v3.5): https://github.com/volfegan/Geometric...
A simple triangulation of any convex/non-convex polygon with ordered clockwise/anti-clockwise points. It creates an array of triangles using only the vertices points of the polygon. Best used if finer processing is required for the polygon instead of what I just did.