{"size": 437, "ext": "js", "max_stars_repo_path": "public/js/o.js", "max_stars_repo_name": "paulbarbu/ttt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/o.js", "max_issues_repo_name": "paulbarbu/ttt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/o.js", "max_forks_repo_name": "paulbarbu/ttt", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.85, "max_line_length": 84, "alphanum_fraction": 0.5400457666}
function O(ctx, w, h)
{
    Shape.call(this, ctx);

    this.w = w;
    this.h = h;
    this.r = w<h ? w/2 : h/2;
}

O.prototype = Object.create(Shape.prototype);
O.prototype.constructor = O;

O.prototype.draw = function(x, y)
{
    console.log("O.draw > x: " + x + " y: " + y + " w: " + this.w + " h:" + this.h);
    this.ctx.beginPath();
    this.ctx.arc((this.w+x)/2, (this.h+y)/2, this.r, 2*Math.PI, false);

    this.ctx.stroke();
}