triangles refactored

Thank you Github app