x = 150;
canvas.drawRectangle(x, y, width, height, gray);
subcanvas = canvas.createSubcanvas(x + 1, y + 1, width - 1, height - 1);
subcanvas.offset(-100, -200);
subcanvas.drawRectangle(100, 200, width - 2, height - 2, red);
subcanvas.drawRectangle(0, 0, 120, 220, green);
// solid shapes