Did you know ... Search Documentation:
canvas->close_path