@Override public Canvas rect(int x, int y, int width, int height) { addOperation(() -> context2d.rect(x, y, width, height)); return this; }
@Override public Canvas clipRect(float x, float y, float width, float height) { ctx.beginPath(); ctx.rect(x, y, width, height); ctx.clip(); return this; }
@Override public Canvas clipRect(float x, float y, float width, float height) { ctx.beginPath(); ctx.rect(x, y, width, height); ctx.clip(); return this; }
@Override public Canvas clipRect(float x, float y, float width, float height) { ctx.beginPath(); ctx.rect(x, y, width, height); ctx.clip(); return this; }
} else { ctx.beginPath(); ctx.rect(clip.getX(), clip.getY(), clip.getWidth(), clip.getHeight()); ctx.closePath();