public static Polygon PopulateTrianglePolygon(this RectangleF bounds, string customColor) { CustomBasicList <PointF> points = GetTrianglePoints(bounds); Polygon output = points.CreatePolygon(); output.Fill = customColor.ToWebColor(); return(output); }