Source code for neoscore.core.page_overlays

"""Built-in page overlay helpers"""

from typing import Optional

from neoscore.core import neoscore
from neoscore.core.directions import DirectionX
from neoscore.core.font import Font
from neoscore.core.page import Page
from neoscore.core.page_supplier import PageOverlayFunc
from neoscore.core.text import Text





def _format_template(template: str, page_number: int) -> str:
    return template.replace("%page", str(page_number))