Coming up with a formula for these curves was a bit of a pain. After multiple failed experiments I eventually settled on where s ranges from 1 (straight line) to 0 (other two edges of the triangle). The x and y are in a modified reference frame where the center of the triangle is the origin and two vertices of the triangle are the X and Y axis. Each triangle contains three of these modified reference frames. Each stripe of color represents a different s.