diff --git a/lib/canvas.js b/lib/canvas.js index dc5a656..c20ebf5 100644 --- a/lib/canvas.js +++ b/lib/canvas.js @@ -146,6 +146,17 @@ var parseColor = exports.parseColor = function(str){ } }; +/** + * Inspect canvas. + * + * @return {String} + * @api public + */ + +Canvas.prototype.inspect = function(){ + return '[Canvas ' + this.width + ' ' + this.height + ']'; +}; + /** * Get a context object. *