Rect.js 196 B

12345678910111213
  1. "use strict";
  2. function Rect(src)
  3. {
  4. Object2D.call(this);
  5. }
  6. Rect.prototype = Object.create(Object2D.prototype);
  7. Rect.prototype.draw = function(context)
  8. {
  9. context.fillRect(-20, -20, 40, 40);
  10. };