function Ctx(t){if(!(this instanceof Ctx))return new Ctx(t);if(this._canvas=t.getContext?t:document.querySelector(t),this._ctx=this._canvas.getContext("2d"),!this.drawImage){var n=this._ctx,i=Ctx.prototype;for(var e in n)!function(t){i[t]="function"==typeof n[t]?function(){return this._ctx[t].apply(this._ctx,arguments)||this}:function(n){return arguments.length?(this._ctx[t]=n,this):this._ctx[t]}}(e)}}
