Javascript Canvas Clip Rechteck

ctx.rect(50, 20, 200, 120); // Create path
ctx.clip(); // Clip, everything outside rectangle is not rendered
TC5550