Add beginPath and closePath API, just to test using built-in Path2D for primitive drawing