From ac812dbeed92c6f2d94dbbbd1245975f6eb474ba Mon Sep 17 00:00:00 2001 From: DjAlEx234 Date: Sun, 30 Apr 2017 10:22:35 -0500 Subject: [PATCH] DrawTriangle --- source/Cosmos.System/Graphics/Canvas.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/Cosmos.System/Graphics/Canvas.cs b/source/Cosmos.System/Graphics/Canvas.cs index 761944493..d489d52b5 100644 --- a/source/Cosmos.System/Graphics/Canvas.cs +++ b/source/Cosmos.System/Graphics/Canvas.cs @@ -239,6 +239,13 @@ namespace Cosmos.System.Graphics } } + public void DrawTriangle(Pen pen, int v1x, int v1y, int v2x, int v2y, int v3x, int v3y) + { + DrawLine(pen, v1x, v1y, v2x, v2y); + DrawLine(pen, v1x, v1y, v3x, v3y); + DrawLine(pen, v2x, v2y, v3x, v3y); + } + public void DrawRectangle(Pen pen, float x_start, float y_start, float width, float height) { throw new NotImplementedException();