Triangles

Tiles:

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