apply-canvas: Take direction and depth as a parameter.