UNPKG

snapsvg

Version:
28 lines (26 loc) 547 B
/** * @class Renderer * @author Matthew Wagerfield */ FSS.Renderer = function() { this.width = 0; this.height = 0; this.halfWidth = 0; this.halfHeight = 0; }; FSS.Renderer.prototype = { setSize: function(width, height) { if (this.width === width && this.height === height) return; this.width = width; this.height = height; this.halfWidth = this.width * 0.5; this.halfHeight = this.height * 0.5; return this; }, clear: function() { return this; }, render: function(scene) { return this; } };