Skip to content

marble3 / outlinedTextTexture

Function: outlinedTextTexture() ​

outlinedTextTexture(text, opts?): CanvasTexture

Defined in: src/billboard.ts:41

Draws one centred line of outlined text on a transparent canvas and returns it as a texture. The outline keeps it readable over bright or busy backgrounds.

Parameters ​

text ​

string

opts? ​

OutlinedTextOptions = {}

Returns ​

CanvasTexture