Skip to content

Commit ecdfea6

Browse files
author
Dominic Beger
committed
Add example images for canvas
1 parent 7e85441 commit ecdfea6

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Canvas2D.png

24.4 KB
Loading

Canvas2DFunctions.png

8.64 KB
Loading
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Author: Dominic Beger (Trade/ProgTrade) 2016
2+
3+
using System;
4+
using System.Windows.Forms;
5+
using SharpMath.Geometry;
6+
using SharpMath.Presentation;
7+
8+
namespace SharpMath.Canvas2DTest
9+
{
10+
public partial class Canvas2DTest : Form
11+
{
12+
public Canvas2DTest()
13+
{
14+
InitializeComponent();
15+
}
16+
17+
private void Canvas2DTest_Load(object sender, EventArgs e)
18+
{
19+
testCanvas.Functions.Add(new FunctionWrapper(x => Math.Pow(x, 3)));
20+
testCanvas.Functions.Add(new FunctionWrapper(x => 1.5 * Math.Sin(x)));
21+
testCanvas.Vertices.Add(new Vector2(4, 8));
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)