Triangles

X: Y: Corners

Manual for xtriangles (similar X program).
JavaScript Source: triangles.js.