-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGraphics.cs
51 lines (35 loc) · 1.06 KB
/
Graphics.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Drawing;
using System.Windows.Forms;
namespace CollisionSimulation
{
public partial class Graphics : Form
{
//public Particle[] particles=null;
public PaintEventArgs args;
//private CollisionSystem s;
public Graphics()
{
//Particle[] particles = new Particle[20];
//for (int i = 0; i < 20; i++)
//{
// particles[i] = new Particle();
//}
//s = new CollisionSystem(particles, 500, 500);
InitializeComponent();
}
public virtual void Graphics_Paint(object sender, PaintEventArgs e)
{
this.args = e;
args.Graphics.FillRectangle(Brushes.Blue, 10, 10, 50, 50);
}
public virtual void invalidate()
{
this.Invalidate();
}
//public void setWindowSize (int windowWidth, int windowHeight)
//{
// this.Width = windowWidth;
// this.Height = windowHeight;
//}
}
}