@Override
	public void draw(Graphics g) {
		if (trails) {
			g.setColor(new Color(0, 0, 0, 30));
			g.fillRect(0, 0, width, height);
			
			g.setColor(new Color(20, 20, 20));
			for (int i = 0; i < width; i += 50) {
				for (int j = 0; j < height; j += 50) {
					g.fillRect(i, j, 5, 5);
				}
			}
		}
		
		for (Particle2D p : particles) {
			p.draw(g, width, height);
		}
	}