Programmed triangles