Skip to content

Instantly share code, notes, and snippets.

@tondrej
Created November 11, 2018 20:33
Show Gist options
  • Save tondrej/254067873ccf6fbe85ebe0f5f2f0c0de to your computer and use it in GitHub Desktop.
Save tondrej/254067873ccf6fbe85ebe0f5f2f0c0de to your computer and use it in GitHub Desktop.
Circle
function Circle(x, y, r) {
Shape.call(this, x, y);
this.r = r;
}
Circle.prototype = Object.create(Shape.prototype);
Circle.prototype.constructor = Circle;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment