I have no idea.
Thanks to @key-lock for the original project and the algorithm to make the positions change so it looks like the triangle is bouncing. I replaced his tri fill with mine, which isn't as accurate as his, but yeah. I also made it so the triangles change direction in certain patterns.