var p = new Path2D("M10 10 h 80 v 80 h -80 Z"); ctx.fill(p);