cornerContour

cornerContour workings

It breaks down lines and curves into triangles for use with your prefered toolkit.

linesTriangleCorners

CornerContour focuses on contours. For additional features look at trilateral3 for implemention ideas, like texture and gradient.