The 2D layer · function
themeRgba
themeColour and unpackRgba in one call, which is how a widget uses both.
Explained in Sprites and tilemaps.
function themeRgba(theme: Theme, name: string, fallback: number, out: Float32Array): Float32Arrayimport { themeRgba } from '@driftengine/ui2d';Parameters
| Parameter | Type | Description |
|---|---|---|
theme | Theme | |
name | string | |
fallback | number | |
out | Float32Array |