Adds extra constructor that accepts a color parameter to a triangle.