Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 387 Bytes
Screen.does('frame', function() {
this.ctx.beginPath();
this.ctx.moveTo(this.x(),this.y());
this.ctx.lineTo(this.x()+this.width(),this.y());
this.ctx.lineTo(this.x()+this.width(),this.y()+this.height());
this.ctx.lineTo(this.x(),this.y()+this.h);
this.ctx.lineTo(this.x(),this.y());
this.ctx.stroke();
this.ctx.closePath();
this.to(this.width(),this.height());
return this;
})