On this page
britzl/defold-richtext/richtext.color
Rich-text rendering for Defold: styled spans, embedded tags, and per-color text runs.
- GitHub: britzl/defold-richtext — pinned to
2fe3aed- Pick a release from britzl/defold-richtext releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as color from "richtext.color"
- Pick a release from britzl/defold-richtext releases and add its Source code (zip) URL (or a packaged
Functions
add(name: string, color: number | string)
Parameters
name:stringcolor:number | string