made it so that the triangles are painted based on their color
merged