text: ;(function () {
    if (Graphics.prototype.drawRoundRect == null) {
      Graphics.prototype.drawRoundRect = function drawRoundRect (x1,y1, x2,y2, r) {
        let x,y;
        if (x1 > x2) { x = x1; x1 = x2; x2 = x; }
        if (y1 > y2) { y = y1; y1 = y2; y2 = y; }
  
        r = Math.min(r || 0, (x2-x1)/2, (y2-y1)/2);
  
        let cx1 = x1+r, cx2 = x2-r;
        let cy1 = y1+r, cy2 = y2-r;
  
        let gfx = this || g;
  
        gfx.drawLine(cx1,y1, cx2,y1);
        gfx.drawLine(cx1,y2, cx2,y2);
        gfx.drawLine(x1,cy1, x1,cy2);
        gfx.drawLine(x2,cy1, x2,cy2);
  
        x = r; y = 0;
  
        let dx,dy, Error = 0;
        while (y <= x) {
          dy = 1 + 2*y; y++; Error -= dy;
          if (Error < 0) {
            dx = 1 - 2*x; x--; Error -= dx;
          }
  
          gfx.setPixel(cx1 - x, cy1 - y);  gfx.setPixel(cx1 - y, cy1 - x);
          gfx.setPixel(cx2 + x, cy1 - y);  gfx.setPixel(cx2 + y, cy1 - x);
          gfx.setPixel(cx2 + x, cy2 + y);  gfx.setPixel(cx2 + y, cy2 + x);
          gfx.setPixel(cx1 - x, cy2 + y);  gfx.setPixel(cx1 - y, cy2 + x);
        }
  
        return gfx;
      };
    }
  })();
  