SiliconGhetto Engine API
    Preparing search index...

    Function drawText

    • Draw text on screen.

      Parameters

      • text: string

        The string to render

      • x: number

        X position

      • y: number

        Y position

      • Optionalsize: number

        Font size in pixels (default 16)

      • opts: TextOpts = {}

        Text color options (r, g, b each 0-1)

      Returns void

      sg.drawText('Score: 100', 10, 10, 24, { r: 1, g: 1, b: 1 });