Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. drawquadrants(context) {
  2. if (this.nw != null) {
  3. this.nw.drawquadrants(context);
  4. this.ne.drawquadrants(context);
  5. this.sw.drawquadrants(context);
  6. this.se.drawquadrants(context);
  7. } else {
  8. context.beginPath();
  9. context.rect(this.boundaryAABB.x - this.boundaryAABB.halfLength,
  10. this.boundaryAABB.y - this.boundaryAABB.halfLength,
  11. 2 * this.boundaryAABB.halfLength, 2 * this.boundaryAABB.halfLength);
  12. context.lineWidth = 3;
  13. context.strokeStyle = 'black';
  14. context.closePath();
  15. context.stroke();
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement