// JavaScript Document

function headerParticle(x,y,rad,speed) {
	this.posX = x; 
	this.posY = y; 
	this.radius = rad;
	this.vel = speed;
	
	this.update = function() {
		this.posX -= this.vel;
		this.posY += this.vel;
	}
	
	this.render = function(context) {
		context.fillStyle = "rgba(36,46,63,1)";
		context.beginPath();
		context.arc(this.posX, this.posY, this.radius, 0, Math.PI*2, true);
		context.closePath();
		context.fill();
	
	}
}
